Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FrameAutomationPeer.cs
- ValidationErrorCollection.cs
- HttpCachePolicyElement.cs
- WebBrowserDesigner.cs
- MetaType.cs
- IndexedWhereQueryOperator.cs
- SecurityContextTokenCache.cs
- TaskFileService.cs
- XmlWrappingReader.cs
- DirectoryNotFoundException.cs
- SqlTriggerAttribute.cs
- LicenseContext.cs
- CellIdBoolean.cs
- Encoding.cs
- TimeSpan.cs
- ViewRendering.cs
- LiteralControl.cs
- DirectoryInfo.cs
- IntegerCollectionEditor.cs
- SafeProcessHandle.cs
- PreviewKeyDownEventArgs.cs
- TypeToStringValueConverter.cs
- UniformGrid.cs
- MarginCollapsingState.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- LassoHelper.cs
- SafeNativeMethodsMilCoreApi.cs
- TransformCollection.cs
- ResourcePart.cs
- ProtectedProviderSettings.cs
- Logging.cs
- BorderGapMaskConverter.cs
- CngKey.cs
- DataSourceXmlSerializationAttribute.cs
- BinaryObjectReader.cs
- ListDictionaryInternal.cs
- ImageAnimator.cs
- IndexerNameAttribute.cs
- X509UI.cs
- HostExecutionContextManager.cs
- OptionalColumn.cs
- SystemIPv6InterfaceProperties.cs
- XmlDomTextWriter.cs
- CqlQuery.cs
- XmlSerializationGeneratedCode.cs
- Transform.cs
- ScriptBehaviorDescriptor.cs
- FigureParaClient.cs
- FlatButtonAppearance.cs
- XmlSchema.cs
- adornercollection.cs
- UnsafeNativeMethods.cs
- ToolStripContentPanelRenderEventArgs.cs
- SerializationSectionGroup.cs
- UnsafeNativeMethods.cs
- ProcessInfo.cs
- _IPv6Address.cs
- FilteredXmlReader.cs
- SoapFault.cs
- XmlDictionary.cs
- SchemaInfo.cs
- figurelength.cs
- XmlQualifiedNameTest.cs
- RotateTransform.cs
- IPGlobalProperties.cs
- TypedAsyncResult.cs
- FieldToken.cs
- UnionCodeGroup.cs
- EntitySqlQueryState.cs
- Paragraph.cs
- Ipv6Element.cs
- MsmqHostedTransportConfiguration.cs
- OutputCacheModule.cs
- TargetException.cs
- ToolStripTextBox.cs
- StylusSystemGestureEventArgs.cs
- DbParameterHelper.cs
- CheckBoxField.cs
- LOSFormatter.cs
- UserThread.cs
- CodeNamespaceImport.cs
- Calendar.cs
- RtfNavigator.cs
- TextEditorSpelling.cs
- Span.cs
- SHA512CryptoServiceProvider.cs
- SoapParser.cs
- ClientSettingsProvider.cs
- TextComposition.cs
- CustomErrorCollection.cs
- WindowsSlider.cs
- HeaderElement.cs
- WebPartCollection.cs
- DispatchRuntime.cs
- _ChunkParse.cs
- XmlIncludeAttribute.cs
- FunctionQuery.cs
- StringValidatorAttribute.cs
- InOutArgumentConverter.cs
- CollectionsUtil.cs