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
- StandardOleMarshalObject.cs
- StreamUpdate.cs
- Point4D.cs
- ToolStripContentPanelRenderEventArgs.cs
- SecurityHeader.cs
- _Win32.cs
- UrlMappingCollection.cs
- ValidationPropertyAttribute.cs
- CompilerGeneratedAttribute.cs
- Selector.cs
- BinaryQueryOperator.cs
- ConfigXmlDocument.cs
- FormViewCommandEventArgs.cs
- AssemblyBuilder.cs
- NodeInfo.cs
- ToolStripPanelRow.cs
- DataGridViewSelectedRowCollection.cs
- SeekStoryboard.cs
- Process.cs
- WindowsIdentity.cs
- AlphabeticalEnumConverter.cs
- MiniModule.cs
- DataTableMappingCollection.cs
- ParallelRangeManager.cs
- ComboBox.cs
- SequentialOutput.cs
- VideoDrawing.cs
- CompiledXpathExpr.cs
- InvokeBinder.cs
- EarlyBoundInfo.cs
- TypefaceMap.cs
- HttpServerVarsCollection.cs
- Funcletizer.cs
- LinqDataSourceDeleteEventArgs.cs
- SetStoryboardSpeedRatio.cs
- ContentType.cs
- WindowsGraphicsCacheManager.cs
- HTMLTagNameToTypeMapper.cs
- SqlDataSourceQueryConverter.cs
- HierarchicalDataSourceControl.cs
- EmptyQuery.cs
- Composition.cs
- OleAutBinder.cs
- ZipIOFileItemStream.cs
- WebConfigurationHostFileChange.cs
- BitmapEffectDrawingContent.cs
- XmlLangPropertyAttribute.cs
- ActivityCodeDomSerializer.cs
- GregorianCalendarHelper.cs
- CountdownEvent.cs
- ConcurrencyBehavior.cs
- HttpPostedFile.cs
- CommonXSendMessage.cs
- TiffBitmapEncoder.cs
- TextPointer.cs
- TransferRequestHandler.cs
- precedingquery.cs
- CompatibleComparer.cs
- SymbolMethod.cs
- Int32Storage.cs
- BinHexEncoder.cs
- EdmComplexTypeAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- SchemaManager.cs
- StateManager.cs
- SQLBinaryStorage.cs
- BackStopAuthenticationModule.cs
- MediaCommands.cs
- ExceptionValidationRule.cs
- DataObjectCopyingEventArgs.cs
- ObjRef.cs
- ObjectListItemCollection.cs
- Translator.cs
- Rotation3D.cs
- SecurityCriticalDataForSet.cs
- StackOverflowException.cs
- BuildProvider.cs
- Splitter.cs
- CellRelation.cs
- MsmqBindingFilter.cs
- SystemGatewayIPAddressInformation.cs
- HScrollProperties.cs
- TriggerAction.cs
- TextTreeRootTextBlock.cs
- SQLBoolean.cs
- XmlSortKeyAccumulator.cs
- DataConnectionHelper.cs
- BrowserTree.cs
- SupportsEventValidationAttribute.cs
- formatter.cs
- SubpageParagraph.cs
- InputMethodStateChangeEventArgs.cs
- IImplicitResourceProvider.cs
- OdbcConnection.cs
- Maps.cs
- ToolBar.cs
- CustomAttributeSerializer.cs
- OperationResponse.cs
- TypeListConverter.cs
- TextPenaltyModule.cs