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
- RemotingServices.cs
- Array.cs
- Crypto.cs
- CompressEmulationStream.cs
- SchemaEntity.cs
- XmlSchemaSimpleType.cs
- Queue.cs
- AppDomainShutdownMonitor.cs
- ByteFacetDescriptionElement.cs
- OrderedHashRepartitionStream.cs
- KnownColorTable.cs
- KeyValuePair.cs
- TdsParserSessionPool.cs
- QueryIntervalOp.cs
- CharUnicodeInfo.cs
- CompilerScope.cs
- DetailsViewInsertedEventArgs.cs
- LayoutInformation.cs
- SQLUtility.cs
- BindingMAnagerBase.cs
- LineProperties.cs
- WebResponse.cs
- HttpEncoderUtility.cs
- ResourceManager.cs
- DataSourceControl.cs
- TargetControlTypeCache.cs
- Debug.cs
- VirtualizingStackPanel.cs
- AnnotationComponentChooser.cs
- Win32MouseDevice.cs
- XXXOnTypeBuilderInstantiation.cs
- DragStartedEventArgs.cs
- OletxTransactionManager.cs
- TimeoutValidationAttribute.cs
- IndexerNameAttribute.cs
- SoapSchemaMember.cs
- MethodCallConverter.cs
- DataGridViewColumnCollection.cs
- TransformedBitmap.cs
- Binding.cs
- DrawingVisualDrawingContext.cs
- DBSqlParser.cs
- CollectionViewProxy.cs
- SqlFunctions.cs
- MultilineStringEditor.cs
- DataBoundControl.cs
- WorkflowApplicationCompletedException.cs
- Opcode.cs
- HashAlgorithm.cs
- CollectionViewGroup.cs
- DataGridPageChangedEventArgs.cs
- CompilerTypeWithParams.cs
- XmlSchemaComplexContent.cs
- EmbeddedMailObjectsCollection.cs
- FirstMatchCodeGroup.cs
- ScriptManager.cs
- ControlBindingsCollection.cs
- ClipboardData.cs
- WebPartManagerDesigner.cs
- UrlAuthorizationModule.cs
- AnimationException.cs
- HwndSourceKeyboardInputSite.cs
- MetabaseReader.cs
- ConstrainedDataObject.cs
- SelectingProviderEventArgs.cs
- clipboard.cs
- CallContext.cs
- DependencyPropertyChangedEventArgs.cs
- URI.cs
- DialogResultConverter.cs
- TableLayoutColumnStyleCollection.cs
- PointKeyFrameCollection.cs
- WindowsFormsHostPropertyMap.cs
- WebPartConnection.cs
- ParentControlDesigner.cs
- SecureUICommand.cs
- GrammarBuilder.cs
- IsolatedStorageFilePermission.cs
- FullTextLine.cs
- Message.cs
- _FtpControlStream.cs
- OrderedDictionary.cs
- WinFormsUtils.cs
- RouteItem.cs
- SqlUnionizer.cs
- NumberFunctions.cs
- CustomMenuItemCollection.cs
- EntityDataSourceWrapperCollection.cs
- BitmapEffectState.cs
- HtmlControlDesigner.cs
- SettingsBase.cs
- PropertiesTab.cs
- Mapping.cs
- ListViewAutomationPeer.cs
- InputScopeConverter.cs
- PasswordPropertyTextAttribute.cs
- DataObjectMethodAttribute.cs
- ExpressionHelper.cs
- odbcmetadatacolumnnames.cs
- CustomAttribute.cs