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
- BindingExpressionUncommonField.cs
- SimpleHandlerFactory.cs
- infer.cs
- LoadRetryStrategyFactory.cs
- ActiveXHelper.cs
- DispatchWrapper.cs
- AssociationProvider.cs
- ToolStripItemCollection.cs
- SynchronizedInputAdaptor.cs
- PeerNameResolver.cs
- MultipartIdentifier.cs
- PrintingPermissionAttribute.cs
- DbCommandTree.cs
- XmlDomTextWriter.cs
- CodeAttachEventStatement.cs
- ExpressionLexer.cs
- NativeMethodsCLR.cs
- Message.cs
- TreeView.cs
- ScrollBar.cs
- MultiAsyncResult.cs
- EmptyStringExpandableObjectConverter.cs
- HttpApplication.cs
- DrawingContextDrawingContextWalker.cs
- XPathDocument.cs
- NotSupportedException.cs
- EventRouteFactory.cs
- ToolstripProfessionalRenderer.cs
- X509CertificateChain.cs
- DynamicResourceExtension.cs
- OracleDateTime.cs
- Axis.cs
- PointCollection.cs
- FunctionMappingTranslator.cs
- XmlSchemaAnnotated.cs
- FixedSOMGroup.cs
- TextPointerBase.cs
- RichTextBox.cs
- MultipleFilterMatchesException.cs
- CommonDialog.cs
- DelayedRegex.cs
- Publisher.cs
- TreeView.cs
- DataTableClearEvent.cs
- AsymmetricSignatureDeformatter.cs
- SmtpAuthenticationManager.cs
- PlanCompilerUtil.cs
- MiniCustomAttributeInfo.cs
- SqlDataSourceStatusEventArgs.cs
- ObjectSpanRewriter.cs
- XmlSchemaValidationException.cs
- WhitespaceRuleReader.cs
- EntityStoreSchemaFilterEntry.cs
- XmlArrayItemAttribute.cs
- ZipIOExtraFieldZip64Element.cs
- TextBoxBase.cs
- DataError.cs
- CodeObject.cs
- EmptyEnumerator.cs
- HyperLinkStyle.cs
- Material.cs
- PeerNameRecord.cs
- ResolveCriteriaCD1.cs
- RegexWriter.cs
- TextEffect.cs
- CharEntityEncoderFallback.cs
- PresentationTraceSources.cs
- TableRow.cs
- NumericPagerField.cs
- coordinatorscratchpad.cs
- MinMaxParagraphWidth.cs
- StreamingContext.cs
- CodeAttributeDeclaration.cs
- DataGridSortCommandEventArgs.cs
- SessionParameter.cs
- ping.cs
- ClientRuntimeConfig.cs
- sqlmetadatafactory.cs
- CultureInfoConverter.cs
- Style.cs
- Camera.cs
- SqlException.cs
- IteratorDescriptor.cs
- ProviderConnectionPointCollection.cs
- CodeDirectiveCollection.cs
- ComponentChangedEvent.cs
- ReachNamespaceInfo.cs
- FileLogRecord.cs
- Tag.cs
- EntityDataSourceState.cs
- ClientSettingsSection.cs
- UInt16.cs
- XsltException.cs
- ChildTable.cs
- ScrollPattern.cs
- RegexCompiler.cs
- TextSelectionProcessor.cs
- Preprocessor.cs
- MergePropertyDescriptor.cs
- ConfigViewGenerator.cs