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
- WebPartTransformer.cs
- DataGridHyperlinkColumn.cs
- COM2ExtendedTypeConverter.cs
- ValueQuery.cs
- propertytag.cs
- ColorAnimationUsingKeyFrames.cs
- HttpPostedFile.cs
- CacheDependency.cs
- MetadataFile.cs
- TextBoxBase.cs
- ParameterToken.cs
- XmlElementAttributes.cs
- AppDomainResourcePerfCounters.cs
- RoutedEventValueSerializer.cs
- EncoderNLS.cs
- CachedCompositeFamily.cs
- BodyGlyph.cs
- AutoResizedEvent.cs
- MimeTypeMapper.cs
- BevelBitmapEffect.cs
- EventDescriptorCollection.cs
- MailHeaderInfo.cs
- OlePropertyStructs.cs
- XamlFrame.cs
- BitmapEffectvisualstate.cs
- PageEventArgs.cs
- WhitespaceRuleLookup.cs
- BitmapEffectGroup.cs
- PasswordRecoveryDesigner.cs
- HttpDebugHandler.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- TableLayoutPanel.cs
- SecurityException.cs
- ColorDialog.cs
- RepeatBehaviorConverter.cs
- WindowsListView.cs
- DataSourceHelper.cs
- IChannel.cs
- FlowSwitchDesigner.xaml.cs
- WebPartConnectVerb.cs
- ColumnTypeConverter.cs
- Matrix.cs
- Effect.cs
- _LocalDataStoreMgr.cs
- ProxyGenerator.cs
- VirtualizingStackPanel.cs
- SineEase.cs
- ListItemsCollectionEditor.cs
- SerializerDescriptor.cs
- ActivityUtilities.cs
- UTF32Encoding.cs
- DeclaredTypeValidatorAttribute.cs
- PasswordRecovery.cs
- CustomWebEventKey.cs
- XmlMtomReader.cs
- SessionEndedEventArgs.cs
- RegexNode.cs
- SqlNodeAnnotation.cs
- PassportPrincipal.cs
- XmlQueryOutput.cs
- ColorPalette.cs
- OdbcParameter.cs
- ContextConfiguration.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- CompositeScriptReferenceEventArgs.cs
- RenderingEventArgs.cs
- WebExceptionStatus.cs
- ResourceReferenceExpressionConverter.cs
- BookmarkOptionsHelper.cs
- IFlowDocumentViewer.cs
- NativeMethodsCLR.cs
- ImagingCache.cs
- ProxyHwnd.cs
- SiteMapProvider.cs
- SqlClientMetaDataCollectionNames.cs
- CommandLibraryHelper.cs
- TablePattern.cs
- DictionaryManager.cs
- Relationship.cs
- CompoundFileDeflateTransform.cs
- TextTrailingCharacterEllipsis.cs
- BackEase.cs
- TextEffectResolver.cs
- WorkflowOperationBehavior.cs
- StrokeDescriptor.cs
- HttpRuntimeSection.cs
- ToolboxDataAttribute.cs
- DataControlFieldCollection.cs
- DataGridCellEditEndingEventArgs.cs
- LocalIdKeyIdentifierClause.cs
- Matrix.cs
- WorkflowMessageEventArgs.cs
- _CommandStream.cs
- Vector3D.cs
- RuntimeResourceSet.cs
- DeclarativeCatalogPart.cs
- CollectionConverter.cs
- Converter.cs
- ButtonField.cs
- TreeViewDesigner.cs