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
- OletxResourceManager.cs
- ScrollChrome.cs
- DataGridViewLinkColumn.cs
- EventBuilder.cs
- SplineQuaternionKeyFrame.cs
- ComMethodElementCollection.cs
- ConfigXmlSignificantWhitespace.cs
- ReferenceTypeElement.cs
- Model3DCollection.cs
- TemplateBuilder.cs
- AuthenticationConfig.cs
- SystemIPv6InterfaceProperties.cs
- CatalogZoneBase.cs
- ControlPersister.cs
- InputReferenceExpression.cs
- CodeDelegateCreateExpression.cs
- panel.cs
- SrgsDocumentParser.cs
- RecommendedAsConfigurableAttribute.cs
- ExpandCollapsePatternIdentifiers.cs
- ResolveNameEventArgs.cs
- VideoDrawing.cs
- CodeTypeMemberCollection.cs
- XmlSchemaObjectTable.cs
- TrackingAnnotationCollection.cs
- TraceAsyncResult.cs
- RegistryPermission.cs
- AmbientLight.cs
- XpsThumbnail.cs
- SmtpFailedRecipientsException.cs
- AutoGeneratedField.cs
- CollectionViewSource.cs
- Int32RectValueSerializer.cs
- RootBrowserWindowProxy.cs
- VirtualPathProvider.cs
- UnsafeNativeMethodsCLR.cs
- EventMappingSettings.cs
- CurrentChangingEventManager.cs
- TemplateComponentConnector.cs
- XPathNavigator.cs
- ExpressionBuilder.cs
- TypeDefinition.cs
- WindowsToolbarAsMenu.cs
- GraphicsPath.cs
- ByteArrayHelperWithString.cs
- RequestCacheValidator.cs
- CheckBoxPopupAdapter.cs
- ListViewItemSelectionChangedEvent.cs
- MetadataArtifactLoaderComposite.cs
- AutoResizedEvent.cs
- CustomCredentialPolicy.cs
- DesignerLinkAdapter.cs
- validationstate.cs
- CodeAccessSecurityEngine.cs
- SvcMapFile.cs
- EditorPartCollection.cs
- ResXBuildProvider.cs
- ListViewTableCell.cs
- SiteMapDataSourceView.cs
- BaseTemplateParser.cs
- HtmlInputSubmit.cs
- PolicyManager.cs
- Command.cs
- AllMembershipCondition.cs
- Permission.cs
- ProtocolsConfigurationHandler.cs
- EncodingInfo.cs
- WebBrowserHelper.cs
- FileUpload.cs
- FontStyle.cs
- Authorization.cs
- ParentUndoUnit.cs
- LoginCancelEventArgs.cs
- XappLauncher.cs
- ColorMap.cs
- Viewport3DAutomationPeer.cs
- RelationshipType.cs
- MenuItem.cs
- CultureTable.cs
- Documentation.cs
- IgnoreSectionHandler.cs
- EventLevel.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- FileDialog_Vista_Interop.cs
- PaperSize.cs
- TreeViewEvent.cs
- CurrentTimeZone.cs
- ResourcesChangeInfo.cs
- SymmetricCryptoHandle.cs
- CaseCqlBlock.cs
- TimeoutValidationAttribute.cs
- PartialArray.cs
- TableLayoutPanelCellPosition.cs
- FontDifferentiator.cs
- SqlMethodAttribute.cs
- UserNameSecurityToken.cs
- Journal.cs
- dtdvalidator.cs
- BufferedGraphicsContext.cs
- DataGridAddNewRow.cs