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
- EventsTab.cs
- DataGridViewRowHeaderCell.cs
- SystemWebCachingSectionGroup.cs
- x509store.cs
- RegexCaptureCollection.cs
- CounterSetInstance.cs
- SystemMulticastIPAddressInformation.cs
- DialogResultConverter.cs
- RuntimeHandles.cs
- CachedResourceDictionaryExtension.cs
- TraceUtils.cs
- SoapAttributeAttribute.cs
- HttpPostServerProtocol.cs
- DiscardableAttribute.cs
- InkCanvasInnerCanvas.cs
- OAVariantLib.cs
- VScrollProperties.cs
- Label.cs
- Matrix3DConverter.cs
- WpfSharedXamlSchemaContext.cs
- DeferrableContentConverter.cs
- NameScope.cs
- SqlMethodAttribute.cs
- PageSetupDialog.cs
- FixedSchema.cs
- SHA384.cs
- PeerNameRecord.cs
- NullableDoubleMinMaxAggregationOperator.cs
- DataList.cs
- SafeFileHandle.cs
- DesignerExtenders.cs
- PenCursorManager.cs
- FormParameter.cs
- RequestQueryParser.cs
- SamlDelegatingWriter.cs
- TextRangeBase.cs
- PrintDialogException.cs
- TextEditorTyping.cs
- TabControl.cs
- RouteItem.cs
- ExpressionSelection.cs
- DataTablePropertyDescriptor.cs
- contentDescriptor.cs
- InternalEnumValidatorAttribute.cs
- PkcsUtils.cs
- SelectionRange.cs
- FamilyCollection.cs
- FileDialog.cs
- ChannelOptions.cs
- FixedSOMFixedBlock.cs
- DeferredSelectedIndexReference.cs
- SafeRegistryHandle.cs
- AlternateViewCollection.cs
- ToolStripMenuItem.cs
- ForceCopyBuildProvider.cs
- DataBindingExpressionBuilder.cs
- VBIdentifierNameEditor.cs
- QilXmlWriter.cs
- RegexWriter.cs
- SMSvcHost.cs
- CollectionViewSource.cs
- SignatureDescription.cs
- OptimalTextSource.cs
- InvokeHandlers.cs
- __ComObject.cs
- TextHidden.cs
- Rect.cs
- WebFormDesignerActionService.cs
- WindowHideOrCloseTracker.cs
- XhtmlBasicLabelAdapter.cs
- CommandLibraryHelper.cs
- DiscoveryDocumentLinksPattern.cs
- DisplayNameAttribute.cs
- ServiceOperation.cs
- XmlSchemaSimpleTypeUnion.cs
- WindowsGraphicsCacheManager.cs
- ServiceAppDomainAssociationProvider.cs
- EntityDescriptor.cs
- DataListItemCollection.cs
- AdapterUtil.cs
- AuthenticatedStream.cs
- GroupBoxAutomationPeer.cs
- ThreadAttributes.cs
- PromptEventArgs.cs
- XmlIncludeAttribute.cs
- SiblingIterators.cs
- DataGridViewIntLinkedList.cs
- Int32Storage.cs
- OleDbException.cs
- DirectoryRootQuery.cs
- SqlDataSourceView.cs
- RenderingEventArgs.cs
- DataColumn.cs
- UnsafeCollabNativeMethods.cs
- SmtpReplyReaderFactory.cs
- InlineObject.cs
- DeploymentExceptionMapper.cs
- NetNamedPipeSecurity.cs
- SQLGuidStorage.cs
- ImageSourceValueSerializer.cs