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
- EventSetter.cs
- AnnotationComponentManager.cs
- EmptyStringExpandableObjectConverter.cs
- HttpWebRequestElement.cs
- CompositeTypefaceMetrics.cs
- WeakReferenceEnumerator.cs
- InkPresenterAutomationPeer.cs
- SafeRightsManagementHandle.cs
- ThreadStartException.cs
- RowCache.cs
- WebPartVerbsEventArgs.cs
- MediaPlayer.cs
- SQLByteStorage.cs
- BindingList.cs
- CollectionsUtil.cs
- BuildProviderAppliesToAttribute.cs
- NumericUpDownAccelerationCollection.cs
- JsonReaderWriterFactory.cs
- XmlC14NWriter.cs
- OutOfProcStateClientManager.cs
- UnsafeNativeMethods.cs
- LicenseContext.cs
- PointLight.cs
- xdrvalidator.cs
- DataSourceUtil.cs
- RemotingConfiguration.cs
- ObjectNavigationPropertyMapping.cs
- EndpointInstanceProvider.cs
- GroupJoinQueryOperator.cs
- RowBinding.cs
- Button.cs
- PropertyExpression.cs
- TransformPatternIdentifiers.cs
- StylusCollection.cs
- Hash.cs
- BuildProvider.cs
- DefaultTextStore.cs
- RuntimeTransactionHandle.cs
- IgnoreFileBuildProvider.cs
- ArrayWithOffset.cs
- MultipartContentParser.cs
- CharAnimationBase.cs
- UnicodeEncoding.cs
- ApplicationServiceHelper.cs
- BooleanAnimationBase.cs
- PaintValueEventArgs.cs
- SchemaType.cs
- VectorKeyFrameCollection.cs
- EventLogPermissionAttribute.cs
- MatrixCamera.cs
- LoggedException.cs
- CapabilitiesSection.cs
- BuildManager.cs
- WizardStepBase.cs
- StdValidatorsAndConverters.cs
- ToolStripItemCollection.cs
- NamespaceExpr.cs
- ClientProxyGenerator.cs
- BasicExpandProvider.cs
- GestureRecognitionResult.cs
- WebControlAdapter.cs
- ImageDrawing.cs
- MemberExpression.cs
- ProcessHostServerConfig.cs
- FormatSettings.cs
- TriggerAction.cs
- XmlAnyElementAttributes.cs
- InputScope.cs
- SafeCryptoKeyHandle.cs
- DetectRunnableInstancesTask.cs
- DBPropSet.cs
- ParameterBuilder.cs
- HtmlHistory.cs
- UInt64Converter.cs
- CollectionViewProxy.cs
- DataGridViewBand.cs
- ListViewGroupItemCollection.cs
- TextDecoration.cs
- WindowsToolbarAsMenu.cs
- NativeMethods.cs
- IUnknownConstantAttribute.cs
- BindingBase.cs
- DragAssistanceManager.cs
- StrokeCollection2.cs
- DragCompletedEventArgs.cs
- ReferentialConstraint.cs
- GenericWebPart.cs
- SafeHandle.cs
- FigureHelper.cs
- ClientSettingsSection.cs
- List.cs
- ServiceHttpHandlerFactory.cs
- HtmlImageAdapter.cs
- SmiMetaData.cs
- GenericParameterDataContract.cs
- MultiBinding.cs
- StateElementCollection.cs
- Missing.cs
- ExpressionSelection.cs
- GridErrorDlg.cs