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
- ServerTooBusyException.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WebHttpEndpoint.cs
- TemplateBindingExtension.cs
- DispatcherObject.cs
- ConfigurationLockCollection.cs
- DateTimeConstantAttribute.cs
- ToggleButtonAutomationPeer.cs
- SettingsAttributeDictionary.cs
- ZipFileInfo.cs
- QueueTransferProtocol.cs
- DesignerUtility.cs
- UIPropertyMetadata.cs
- FontWeightConverter.cs
- XmlAtomicValue.cs
- ObjectIDGenerator.cs
- DialogResultConverter.cs
- NonBatchDirectoryCompiler.cs
- MimeMultiPart.cs
- SharedPerformanceCounter.cs
- TriState.cs
- Control.cs
- OneOfTypeConst.cs
- Subtree.cs
- XmlNamespaceMapping.cs
- DetailsView.cs
- SignatureSummaryDialog.cs
- TabControlEvent.cs
- SelectionEditingBehavior.cs
- CryptoApi.cs
- MeasureData.cs
- UIntPtr.cs
- EntityClassGenerator.cs
- PatternMatchRules.cs
- SR.Designer.cs
- DataServiceHostFactory.cs
- PersistChildrenAttribute.cs
- ValueType.cs
- TimeZone.cs
- ChannelAcceptor.cs
- SafeNativeMethods.cs
- CSharpCodeProvider.cs
- SendSecurityHeader.cs
- PreviewPageInfo.cs
- EntityDataSourceUtil.cs
- SQLChars.cs
- RenderOptions.cs
- SchemaElementLookUpTableEnumerator.cs
- TableHeaderCell.cs
- Setter.cs
- DataGridViewSortCompareEventArgs.cs
- ModelItemImpl.cs
- PersistenceProviderFactory.cs
- SessionParameter.cs
- MatrixTransform.cs
- cookie.cs
- TraceEventCache.cs
- DocumentViewerBaseAutomationPeer.cs
- UInt16Storage.cs
- ProfileSettings.cs
- DefaultPrintController.cs
- EventLogEntryCollection.cs
- InvalidCommandTreeException.cs
- DataGridViewColumn.cs
- MatrixAnimationBase.cs
- ISAPIWorkerRequest.cs
- ContextMenu.cs
- MethodImplAttribute.cs
- SchemaCollectionCompiler.cs
- IntegerValidator.cs
- TextSegment.cs
- SecurityDescriptor.cs
- ContentDefinition.cs
- ToolboxItemFilterAttribute.cs
- FixedFindEngine.cs
- ParseElementCollection.cs
- ScriptResourceAttribute.cs
- EventSinkHelperWriter.cs
- IpcClientChannel.cs
- CoTaskMemSafeHandle.cs
- UnmanagedBitmapWrapper.cs
- SingleObjectCollection.cs
- DataGridViewImageCell.cs
- ApplicationInfo.cs
- VirtualizingStackPanel.cs
- OperandQuery.cs
- TextTreeText.cs
- ImageBrush.cs
- TemplateKeyConverter.cs
- SqlServer2KCompatibilityAnnotation.cs
- FormsIdentity.cs
- TypeContext.cs
- Transform3DGroup.cs
- OLEDB_Enum.cs
- XmlSchemaComplexContentExtension.cs
- EncodingTable.cs
- GraphicsContext.cs
- Exceptions.cs
- CodeTypeDeclaration.cs
- Int16Storage.cs