Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Controls / CleanUpVirtualizedItemEventArgs.cs / 1 / CleanUpVirtualizedItemEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Controls { ////// Event arguments communicating an element that is being prepared to be re-virtualized. /// public class CleanUpVirtualizedItemEventArgs : RoutedEventArgs { internal CleanUpVirtualizedItemEventArgs(object value, UIElement element) : base(VirtualizingStackPanel.CleanUpVirtualizedItemEvent) { _value = value; _element = element; } ////// The original data value. /// If the data value is a visual element, it will be the same as UIElement. /// public object Value { get { return _value; } } ////// The instance of the visual element that represented the data value. /// If the data value is a visual element, it will be the same as UIElement. /// public UIElement UIElement { get { return _element; } } ////// Set by handlers of this event to true to indicate that the /// re-virtualizing of this item should not happen. /// public bool Cancel { get { return _cancel; } set { _cancel = value; } } private object _value; private UIElement _element; private bool _cancel; } ////// The delegate to use for handlers that receive CleanUpVirtualizedItemEventArgs. /// public delegate void CleanUpVirtualizedItemEventHandler(object sender, CleanUpVirtualizedItemEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; namespace System.Windows.Controls { ////// Event arguments communicating an element that is being prepared to be re-virtualized. /// public class CleanUpVirtualizedItemEventArgs : RoutedEventArgs { internal CleanUpVirtualizedItemEventArgs(object value, UIElement element) : base(VirtualizingStackPanel.CleanUpVirtualizedItemEvent) { _value = value; _element = element; } ////// The original data value. /// If the data value is a visual element, it will be the same as UIElement. /// public object Value { get { return _value; } } ////// The instance of the visual element that represented the data value. /// If the data value is a visual element, it will be the same as UIElement. /// public UIElement UIElement { get { return _element; } } ////// Set by handlers of this event to true to indicate that the /// re-virtualizing of this item should not happen. /// public bool Cancel { get { return _cancel; } set { _cancel = value; } } private object _value; private UIElement _element; private bool _cancel; } ////// The delegate to use for handlers that receive CleanUpVirtualizedItemEventArgs. /// public delegate void CleanUpVirtualizedItemEventHandler(object sender, CleanUpVirtualizedItemEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqDataSourceUpdateEventArgs.cs
- HostedAspNetEnvironment.cs
- MenuItemCollection.cs
- WinEventQueueItem.cs
- OptionalColumn.cs
- JsonServiceDocumentSerializer.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlParserContext.cs
- ActiveXContainer.cs
- ActivityFunc.cs
- ZipArchive.cs
- StylusPlugInCollection.cs
- XamlPathDataSerializer.cs
- TextServicesCompartmentEventSink.cs
- EventProviderWriter.cs
- MasterPageParser.cs
- EnumerableRowCollection.cs
- HandlerBase.cs
- DBCommandBuilder.cs
- PaperSize.cs
- Psha1DerivedKeyGenerator.cs
- XmlTextReaderImplHelpers.cs
- ScriptResourceAttribute.cs
- ProviderUtil.cs
- CompositionDesigner.cs
- documentsequencetextcontainer.cs
- XmlSchemaInfo.cs
- externdll.cs
- LiteralTextContainerControlBuilder.cs
- WpfWebRequestHelper.cs
- XsltArgumentList.cs
- SectionVisual.cs
- SelectionList.cs
- ClientConfigurationSystem.cs
- OrderingExpression.cs
- OrderingInfo.cs
- TraceSwitch.cs
- StaticExtension.cs
- OdbcErrorCollection.cs
- Keywords.cs
- ContainerParagraph.cs
- SqlOuterApplyReducer.cs
- Point3DConverter.cs
- EntityDataSourceWrapperCollection.cs
- BmpBitmapDecoder.cs
- Facet.cs
- ConnectionManager.cs
- FileNotFoundException.cs
- XmlWriter.cs
- TextDocumentView.cs
- SecurityTokenParameters.cs
- HashCodeCombiner.cs
- DbConnectionOptions.cs
- DataProviderNameConverter.cs
- WebRequestModulesSection.cs
- BamlResourceSerializer.cs
- VisualTreeUtils.cs
- metrodevice.cs
- TableMethodGenerator.cs
- SqlInternalConnectionSmi.cs
- DataKeyPropertyAttribute.cs
- TemplateBuilder.cs
- ProfileSettings.cs
- DataGridPagerStyle.cs
- PrincipalPermission.cs
- InternalRelationshipCollection.cs
- AssemblyBuilderData.cs
- TextEmbeddedObject.cs
- Encoder.cs
- HttpListener.cs
- TextEditorDragDrop.cs
- DataRelationPropertyDescriptor.cs
- ControlLocalizer.cs
- PrintingPermission.cs
- MimeTypeAttribute.cs
- RegexMatch.cs
- XmlUnspecifiedAttribute.cs
- CreateDataSourceDialog.cs
- StringResourceManager.cs
- SqlDataSourceConfigureFilterForm.cs
- UnsafeNativeMethods.cs
- ComponentDispatcher.cs
- ConnectionStringSettingsCollection.cs
- ReaderContextStackData.cs
- TemplateAction.cs
- CodeBlockBuilder.cs
- EpmContentDeSerializerBase.cs
- MemberPathMap.cs
- UserControlAutomationPeer.cs
- TreeViewItemAutomationPeer.cs
- MemberRelationshipService.cs
- ConfigurationManager.cs
- StandardToolWindows.cs
- ErrorStyle.cs
- dataobject.cs
- VirtualPathData.cs
- HttpInputStream.cs
- NetworkCredential.cs
- WebPartAuthorizationEventArgs.cs
- SessionConnectionReader.cs