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
- RuntimeResourceSet.cs
- FixedSOMPageElement.cs
- MappingMetadataHelper.cs
- XmlSchemaNotation.cs
- VersionValidator.cs
- ListBox.cs
- ComboBox.cs
- CompModSwitches.cs
- CategoryList.cs
- XmlRootAttribute.cs
- KeyTimeConverter.cs
- NullRuntimeConfig.cs
- OracleSqlParser.cs
- XmlSchemaNotation.cs
- DesignerCatalogPartChrome.cs
- PointHitTestParameters.cs
- SafeCryptContextHandle.cs
- WebPartEditorCancelVerb.cs
- ReaderContextStackData.cs
- ByteViewer.cs
- QilLiteral.cs
- DocumentXmlWriter.cs
- TriggerCollection.cs
- GetPageCompletedEventArgs.cs
- RelationshipManager.cs
- TrackingServices.cs
- ToolBarPanel.cs
- ManagementEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EntitySqlQueryCacheKey.cs
- InstancePersistence.cs
- XmlSchemaException.cs
- WebPartCatalogCloseVerb.cs
- SchemaReference.cs
- RadioButton.cs
- ChildTable.cs
- SafeFileMappingHandle.cs
- ValidationError.cs
- MasterPageParser.cs
- TraceSwitch.cs
- CheckoutException.cs
- ImageFormat.cs
- RegistryDataKey.cs
- columnmapkeybuilder.cs
- ServiceElement.cs
- SpoolingTask.cs
- HttpListener.cs
- ViewKeyConstraint.cs
- TimeStampChecker.cs
- Tokenizer.cs
- MobileContainerDesigner.cs
- ManagedIStream.cs
- PhonemeConverter.cs
- FontEmbeddingManager.cs
- ObjectQueryExecutionPlan.cs
- NewItemsContextMenuStrip.cs
- BindStream.cs
- OracleDataReader.cs
- XamlSerializerUtil.cs
- ForEach.cs
- MetadataProperty.cs
- ScaleTransform.cs
- UrlUtility.cs
- SoapConverter.cs
- FixUpCollection.cs
- LinkLabelLinkClickedEvent.cs
- RoleGroup.cs
- ConvertEvent.cs
- PasswordRecovery.cs
- SystemIPGlobalProperties.cs
- ParseChildrenAsPropertiesAttribute.cs
- Identity.cs
- QueryStoreStatusRequest.cs
- SafeIUnknown.cs
- SqlDataSource.cs
- XmlReflectionImporter.cs
- WebUtil.cs
- PersonalizableAttribute.cs
- IPipelineRuntime.cs
- XamlDesignerSerializationManager.cs
- SqlConnectionManager.cs
- MetafileHeaderWmf.cs
- CodeDirectionExpression.cs
- PerfCounters.cs
- XmlAggregates.cs
- ModelChangedEventArgsImpl.cs
- TextDecorations.cs
- altserialization.cs
- Stackframe.cs
- GridViewCellAutomationPeer.cs
- StateManagedCollection.cs
- MissingSatelliteAssemblyException.cs
- TableDetailsCollection.cs
- DownloadProgressEventArgs.cs
- CacheOutputQuery.cs
- NewArrayExpression.cs
- InteropExecutor.cs
- FillRuleValidation.cs
- ObjectTag.cs
- _FtpDataStream.cs