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
- MetadataArtifactLoaderCompositeFile.cs
- MenuItemBinding.cs
- GridLength.cs
- AffineTransform3D.cs
- XmlSchemaAnnotated.cs
- LinearGradientBrush.cs
- RuleConditionDialog.Designer.cs
- PreviewControlDesigner.cs
- PreviewKeyDownEventArgs.cs
- HtmlContainerControl.cs
- SerializableAttribute.cs
- NullableDecimalAverageAggregationOperator.cs
- designeractionlistschangedeventargs.cs
- AutoFocusStyle.xaml.cs
- ISessionStateStore.cs
- UnsafeNetInfoNativeMethods.cs
- ParserHooks.cs
- DES.cs
- SafeTimerHandle.cs
- TemplateContent.cs
- SystemWebCachingSectionGroup.cs
- PasswordBox.cs
- XPathExpr.cs
- InlineObject.cs
- KerberosSecurityTokenProvider.cs
- SystemResourceKey.cs
- LogPolicy.cs
- Executor.cs
- SchemeSettingElementCollection.cs
- SynchronizationValidator.cs
- ToggleProviderWrapper.cs
- ManipulationStartingEventArgs.cs
- CodeAccessSecurityEngine.cs
- AnchoredBlock.cs
- ImageProxy.cs
- ReachDocumentSequenceSerializerAsync.cs
- WebPartUserCapability.cs
- MonikerBuilder.cs
- SymLanguageType.cs
- ButtonBase.cs
- WebPartConnectionsDisconnectVerb.cs
- EventMap.cs
- BooleanStorage.cs
- DBConnectionString.cs
- ParseChildrenAsPropertiesAttribute.cs
- Region.cs
- XmlTypeMapping.cs
- ToolBarPanel.cs
- ImageSourceValueSerializer.cs
- MessageQueueTransaction.cs
- SectionVisual.cs
- JournalNavigationScope.cs
- GenericWebPart.cs
- SQLDouble.cs
- EntityTypeBase.cs
- CallbackWrapper.cs
- ColumnClickEvent.cs
- FontFamilyIdentifier.cs
- FilterFactory.cs
- BuilderInfo.cs
- DataKey.cs
- TreeView.cs
- GridItem.cs
- TextElementEnumerator.cs
- AnimationException.cs
- SafeCertificateStore.cs
- String.cs
- ListCollectionView.cs
- DataGridViewElement.cs
- figurelengthconverter.cs
- Underline.cs
- LineSegment.cs
- basevalidator.cs
- OdbcErrorCollection.cs
- Trace.cs
- ExtensionQuery.cs
- InternalBufferOverflowException.cs
- Icon.cs
- DataGridViewSortCompareEventArgs.cs
- CellRelation.cs
- ColumnMapCopier.cs
- CodePageEncoding.cs
- MediaPlayerState.cs
- FontUnit.cs
- CompilationRelaxations.cs
- DataGridViewCheckBoxCell.cs
- MergeLocalizationDirectives.cs
- Operator.cs
- StronglyTypedResourceBuilder.cs
- CompareValidator.cs
- GraphicsState.cs
- ParameterModifier.cs
- ThreadPool.cs
- XmlDataLoader.cs
- CompositeDataBoundControl.cs
- DoubleLinkListEnumerator.cs
- WebPartCatalogCloseVerb.cs
- UnitControl.cs
- MeasurementDCInfo.cs
- JavaScriptObjectDeserializer.cs