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
- MetaForeignKeyColumn.cs
- XmlMembersMapping.cs
- StreamAsIStream.cs
- NotCondition.cs
- DataBoundLiteralControl.cs
- Msec.cs
- MembershipSection.cs
- HttpCacheVaryByContentEncodings.cs
- SchemaEntity.cs
- GlobalizationAssembly.cs
- ImageUrlEditor.cs
- Substitution.cs
- Transform3DGroup.cs
- StylusShape.cs
- HighlightComponent.cs
- SqlSupersetValidator.cs
- MethodRental.cs
- MexTcpBindingCollectionElement.cs
- Rect.cs
- DataGridColumn.cs
- XhtmlBasicCommandAdapter.cs
- LicenseContext.cs
- MessageQueuePermissionEntryCollection.cs
- TimeSpanValidatorAttribute.cs
- WebBrowserUriTypeConverter.cs
- ColumnCollection.cs
- DiscreteKeyFrames.cs
- SettingsBase.cs
- EntityDataSourceReferenceGroup.cs
- DataRecordInfo.cs
- figurelength.cs
- AutoResizedEvent.cs
- StyleHelper.cs
- ExponentialEase.cs
- LineMetrics.cs
- ChameleonKey.cs
- X509ClientCertificateAuthenticationElement.cs
- XpsThumbnail.cs
- SoapFormatter.cs
- AutoGeneratedFieldProperties.cs
- WSTrust.cs
- TypeHelpers.cs
- QueryHandler.cs
- ExpressionHelper.cs
- Button.cs
- RSAProtectedConfigurationProvider.cs
- SessionStateUtil.cs
- WindowCollection.cs
- TypeListConverter.cs
- XPathDescendantIterator.cs
- ScrollBarRenderer.cs
- ListViewDeleteEventArgs.cs
- QueueNameHelper.cs
- SmiEventSink_DeferedProcessing.cs
- SafeThemeHandle.cs
- EmptyControlCollection.cs
- HttpBrowserCapabilitiesBase.cs
- DataViewListener.cs
- ThreadLocal.cs
- DataSetSchema.cs
- BindingNavigator.cs
- ApplicationBuildProvider.cs
- ListBase.cs
- CqlQuery.cs
- XNodeValidator.cs
- SmiEventSink_Default.cs
- RepeatButtonAutomationPeer.cs
- Activator.cs
- NativeRecognizer.cs
- DataBinder.cs
- ConstraintConverter.cs
- SoapAttributes.cs
- RecommendedAsConfigurableAttribute.cs
- Splitter.cs
- ObjectSecurity.cs
- ServiceHostFactory.cs
- ServiceProviders.cs
- RangeEnumerable.cs
- WindowsAuthenticationModule.cs
- TextFormatterContext.cs
- EdmTypeAttribute.cs
- CodeTypeOfExpression.cs
- ErasingStroke.cs
- Activation.cs
- AnimationClockResource.cs
- FormsAuthenticationEventArgs.cs
- PageRequestManager.cs
- OrderByQueryOptionExpression.cs
- ControlValuePropertyAttribute.cs
- XPathSelectionIterator.cs
- _HeaderInfoTable.cs
- GB18030Encoding.cs
- RectangleF.cs
- Animatable.cs
- SelectionChangedEventArgs.cs
- SeverityFilter.cs
- CursorInteropHelper.cs
- CharacterBufferReference.cs
- VectorCollectionValueSerializer.cs
- ActiveXSite.cs