Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Path.cs
- COM2PropertyDescriptor.cs
- TypeFieldSchema.cs
- UrlAuthorizationModule.cs
- WindowsRebar.cs
- FileDialog_Vista_Interop.cs
- WsdlInspector.cs
- XPathNavigator.cs
- OletxEnlistment.cs
- HMACSHA384.cs
- TableTextElementCollectionInternal.cs
- SymbolType.cs
- CodeCompiler.cs
- RequestQueryParser.cs
- OracleConnectionString.cs
- ButtonFieldBase.cs
- XmlSchemaCompilationSettings.cs
- AsymmetricKeyExchangeDeformatter.cs
- ToolStripItemRenderEventArgs.cs
- ActivityTypeCodeDomSerializer.cs
- QueryGenerator.cs
- GlobalizationAssembly.cs
- HttpGetProtocolReflector.cs
- messageonlyhwndwrapper.cs
- DbInsertCommandTree.cs
- BasePattern.cs
- CacheVirtualItemsEvent.cs
- DrawListViewColumnHeaderEventArgs.cs
- IDataContractSurrogate.cs
- AppDomainAttributes.cs
- HttpModuleAction.cs
- PointAnimationUsingKeyFrames.cs
- DesignerToolStripControlHost.cs
- TokenizerHelper.cs
- WebPartManager.cs
- TextElementEditingBehaviorAttribute.cs
- NativeMethods.cs
- JoinGraph.cs
- SpecialFolderEnumConverter.cs
- FillBehavior.cs
- NativeRecognizer.cs
- UnhandledExceptionEventArgs.cs
- HideDisabledControlAdapter.cs
- ParameterElementCollection.cs
- Configuration.cs
- InheritedPropertyDescriptor.cs
- ValueQuery.cs
- RijndaelManaged.cs
- UriSection.cs
- DbLambda.cs
- InputBinding.cs
- ContainerControl.cs
- SchemaTableColumn.cs
- SHA256Managed.cs
- IndexedGlyphRun.cs
- ValidationErrorCollection.cs
- XmlSchemaSequence.cs
- FlowDecisionLabelFeature.cs
- NamespaceList.cs
- BindingManagerDataErrorEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- ValidationHelpers.cs
- WindowsListViewItemStartMenu.cs
- WindowsMenu.cs
- DbDataReader.cs
- ADConnectionHelper.cs
- PatternMatcher.cs
- RC2.cs
- ComplexObject.cs
- SqlMetaData.cs
- ListMarkerSourceInfo.cs
- TextMetrics.cs
- SingleTagSectionHandler.cs
- Gdiplus.cs
- Win32Exception.cs
- PlaceHolder.cs
- Token.cs
- MobileControlPersister.cs
- ReferentialConstraint.cs
- ReferentialConstraintRoleElement.cs
- DataKey.cs
- FactoryMaker.cs
- ConstraintManager.cs
- SmiMetaData.cs
- StyleSelector.cs
- FilteredSchemaElementLookUpTable.cs
- ExtenderProvidedPropertyAttribute.cs
- Single.cs
- JavascriptCallbackResponseProperty.cs
- ConnectivityStatus.cs
- SafeProcessHandle.cs
- PagesSection.cs
- ResourceReferenceExpressionConverter.cs
- ReceiveCompletedEventArgs.cs
- DragDrop.cs
- DeflateStreamAsyncResult.cs
- Currency.cs
- RenderingEventArgs.cs
- SharedUtils.cs
- XslVisitor.cs