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
- CipherData.cs
- GetPageNumberCompletedEventArgs.cs
- ProxyWebPart.cs
- SmtpTransport.cs
- figurelength.cs
- sqlser.cs
- IsolatedStorage.cs
- XmlQueryContext.cs
- PersonalizationStateInfoCollection.cs
- DrawingGroup.cs
- WindowsFormsLinkLabel.cs
- PackWebRequest.cs
- ListViewGroupConverter.cs
- ToolBarButtonDesigner.cs
- MenuAutomationPeer.cs
- AssociationEndMember.cs
- TypedTableBase.cs
- KeyPressEvent.cs
- AsyncPostBackTrigger.cs
- EUCJPEncoding.cs
- XXXOnTypeBuilderInstantiation.cs
- MulticastIPAddressInformationCollection.cs
- ClientProxyGenerator.cs
- Line.cs
- ServiceModelActivity.cs
- XsdCachingReader.cs
- UnmanagedMemoryAccessor.cs
- ClientSettingsStore.cs
- PageTheme.cs
- XamlContextStack.cs
- AsymmetricSignatureDeformatter.cs
- StrongNameMembershipCondition.cs
- CacheVirtualItemsEvent.cs
- DayRenderEvent.cs
- storepermission.cs
- CharUnicodeInfo.cs
- XPathDocumentBuilder.cs
- DockPanel.cs
- VsPropertyGrid.cs
- DispatcherSynchronizationContext.cs
- MethodCallConverter.cs
- QilExpression.cs
- DBAsyncResult.cs
- BindingCompleteEventArgs.cs
- PageCodeDomTreeGenerator.cs
- HostSecurityManager.cs
- StreamUpgradeProvider.cs
- Events.cs
- OptimalTextSource.cs
- SimpleBitVector32.cs
- CodeCatchClause.cs
- XmlWrappingReader.cs
- DataGridViewCellStyle.cs
- SimpleFieldTemplateUserControl.cs
- InvokeProviderWrapper.cs
- MaskedTextProvider.cs
- ListViewInsertEventArgs.cs
- CalendarDay.cs
- TempFiles.cs
- CallContext.cs
- Scene3D.cs
- EnumerableValidator.cs
- PtsHost.cs
- UIHelper.cs
- FeatureSupport.cs
- SessionIDManager.cs
- Stroke.cs
- ContainsSearchOperator.cs
- SubtreeProcessor.cs
- XmlDocument.cs
- safex509handles.cs
- Encoding.cs
- EmptyEnumerable.cs
- Scene3D.cs
- CachedTypeface.cs
- EntityDataSourceSelectedEventArgs.cs
- SqlDuplicator.cs
- EmissiveMaterial.cs
- TrackingProfileCache.cs
- ObjectKeyFrameCollection.cs
- RequestCacheValidator.cs
- CSharpCodeProvider.cs
- MachinePropertyVariants.cs
- CannotUnloadAppDomainException.cs
- Permission.cs
- CssStyleCollection.cs
- ListItemConverter.cs
- Rect.cs
- ResourceProviderFactory.cs
- ErrorHandlingReceiver.cs
- ViewGenResults.cs
- ACE.cs
- OdbcPermission.cs
- GenericPrincipal.cs
- WebPartVerbsEventArgs.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- InstanceOwner.cs
- ISCIIEncoding.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CategoryAttribute.cs