Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / CleanUpVirtualizedItemEventArgs.cs / 1305600 / 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
- MetadataItemSerializer.cs
- RelationHandler.cs
- PeerDuplexChannelListener.cs
- IPipelineRuntime.cs
- XpsDocumentEvent.cs
- SymbolPair.cs
- OpenTypeCommon.cs
- AuthenticationModulesSection.cs
- ColumnResizeAdorner.cs
- DecoderExceptionFallback.cs
- Process.cs
- EpmContentDeSerializerBase.cs
- CalendarAutoFormat.cs
- DataGridViewSelectedRowCollection.cs
- ImmutableCollection.cs
- NameTable.cs
- MissingSatelliteAssemblyException.cs
- HandleCollector.cs
- MediaContext.cs
- HandlerBase.cs
- ConstructorNeedsTagAttribute.cs
- FieldDescriptor.cs
- PreviewPrintController.cs
- LineServicesCallbacks.cs
- WebPartManager.cs
- SystemFonts.cs
- CompositeFontInfo.cs
- ResourceIDHelper.cs
- ObjectSecurity.cs
- LineServicesRun.cs
- XmlImplementation.cs
- GlobalEventManager.cs
- FunctionCommandText.cs
- odbcmetadatacollectionnames.cs
- TextParaLineResult.cs
- IncrementalHitTester.cs
- TimeSpan.cs
- FamilyMap.cs
- TCEAdapterGenerator.cs
- CellTreeSimplifier.cs
- WindowAutomationPeer.cs
- VisualStyleRenderer.cs
- EndOfStreamException.cs
- XmlUrlResolver.cs
- TreeNodeBinding.cs
- NamespaceList.cs
- ContentControl.cs
- MessageContractAttribute.cs
- HttpRequestContext.cs
- ContextMenu.cs
- ExpandSegmentCollection.cs
- AnimationException.cs
- PropertyTabAttribute.cs
- VirtualPathUtility.cs
- WebMessageEncoderFactory.cs
- ModelChangedEventArgsImpl.cs
- RequestCachingSection.cs
- GridViewHeaderRowPresenter.cs
- loginstatus.cs
- WinEventHandler.cs
- SafeFileMappingHandle.cs
- AdvancedBindingPropertyDescriptor.cs
- XmlComment.cs
- BitmapEffectGroup.cs
- WindowsButton.cs
- DataTemplateSelector.cs
- ProfileGroupSettings.cs
- PassportAuthenticationEventArgs.cs
- XmlAtomicValue.cs
- CodeAccessPermission.cs
- SimpleWebHandlerParser.cs
- DesignTimeValidationFeature.cs
- NameValueConfigurationCollection.cs
- Double.cs
- XmlSchemaProviderAttribute.cs
- ListChangedEventArgs.cs
- TableColumnCollection.cs
- WindowsListViewItem.cs
- DataGridColumnHeaderCollection.cs
- TableDetailsCollection.cs
- CellQuery.cs
- AppDomainGrammarProxy.cs
- FrameworkContentElementAutomationPeer.cs
- IChannel.cs
- HealthMonitoringSectionHelper.cs
- EditableRegion.cs
- XmlWriterTraceListener.cs
- PropertyItem.cs
- DataGridHeaderBorder.cs
- PreApplicationStartMethodAttribute.cs
- SessionPageStateSection.cs
- Switch.cs
- xamlnodes.cs
- RegexTree.cs
- CodeParameterDeclarationExpression.cs
- ResourceSet.cs
- CodeAttributeDeclarationCollection.cs
- ExpressionsCollectionEditor.cs
- CaseInsensitiveHashCodeProvider.cs
- DataGridViewColumnTypeEditor.cs