Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PathSegmentCollection.cs
- CodeArrayCreateExpression.cs
- LinkArea.cs
- _ConnectStream.cs
- ModuleBuilderData.cs
- DbXmlEnabledProviderManifest.cs
- RemoteWebConfigurationHostStream.cs
- SQLInt32Storage.cs
- AggregateNode.cs
- RenamedEventArgs.cs
- DoubleCollectionConverter.cs
- RightsManagementPermission.cs
- __Error.cs
- XComponentModel.cs
- MethodBody.cs
- HTMLTextWriter.cs
- PriorityItem.cs
- UInt16Storage.cs
- EntityViewGenerator.cs
- DataGridViewRowConverter.cs
- ExceptionUtil.cs
- ConfigXmlDocument.cs
- _NestedMultipleAsyncResult.cs
- ContextMarshalException.cs
- FieldTemplateFactory.cs
- NamespaceMapping.cs
- RenderDataDrawingContext.cs
- CodeNamespace.cs
- CallbackValidator.cs
- BufferedGraphicsContext.cs
- TemplatePropertyEntry.cs
- SubclassTypeValidatorAttribute.cs
- ControlBindingsCollection.cs
- ContentDisposition.cs
- GenericTextProperties.cs
- DataGridViewImageCell.cs
- SoapReflector.cs
- SafeJobHandle.cs
- OrderByBuilder.cs
- CannotUnloadAppDomainException.cs
- StartUpEventArgs.cs
- ActiveXHost.cs
- EtwTrackingBehaviorElement.cs
- ISCIIEncoding.cs
- ListViewAutomationPeer.cs
- DataGridItemEventArgs.cs
- TransformerTypeCollection.cs
- Transform.cs
- DocumentPaginator.cs
- Invariant.cs
- AttachedPropertyMethodSelector.cs
- TableRow.cs
- ImageListUtils.cs
- RemotingConfiguration.cs
- XmlElement.cs
- PointLightBase.cs
- CmsInterop.cs
- NullableBoolConverter.cs
- InputDevice.cs
- XmlElementCollection.cs
- ThemeInfoAttribute.cs
- Int32Rect.cs
- XmlSchemaDocumentation.cs
- DictionaryContent.cs
- HashStream.cs
- BrowserDefinition.cs
- DigestComparer.cs
- ValueSerializerAttribute.cs
- SourceChangedEventArgs.cs
- ToolStripActionList.cs
- SingleObjectCollection.cs
- DictionaryContent.cs
- XPathSingletonIterator.cs
- TraceInternal.cs
- querybuilder.cs
- ContextStack.cs
- GenericTypeParameterConverter.cs
- XmlChildNodes.cs
- ButtonColumn.cs
- ExpressionBuilderContext.cs
- dsa.cs
- _NegoState.cs
- Int32AnimationBase.cs
- WindowsIdentity.cs
- SiblingIterators.cs
- ObjectListCommand.cs
- DesignerVerbToolStripMenuItem.cs
- PartialCachingControl.cs
- WsdlBuildProvider.cs
- DirectoryRootQuery.cs
- InputBinder.cs
- WebConfigurationHostFileChange.cs
- DoubleAnimation.cs
- MissingMethodException.cs
- DisplayToken.cs
- ToolBarButton.cs
- MethodAccessException.cs
- __Filters.cs
- CalendarTable.cs
- SafeNativeMethodsMilCoreApi.cs