Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ClassGenerator.cs
- XmlFormatExtensionAttribute.cs
- InputScope.cs
- TableLayoutSettings.cs
- AuthenticationSection.cs
- CompoundFileDeflateTransform.cs
- HistoryEventArgs.cs
- CheckableControlBaseAdapter.cs
- DownloadProgressEventArgs.cs
- ColumnMap.cs
- TextBoxView.cs
- SqlClientWrapperSmiStreamChars.cs
- ObjRef.cs
- AssemblyAttributesGoHere.cs
- StructuralObject.cs
- DesignerRegionCollection.cs
- DelimitedListTraceListener.cs
- TableItemStyle.cs
- XmlStreamNodeWriter.cs
- UserValidatedEventArgs.cs
- DoubleLinkList.cs
- SoapIgnoreAttribute.cs
- MetadataArtifactLoaderFile.cs
- HostingEnvironmentException.cs
- PenLineJoinValidation.cs
- followingquery.cs
- FormatException.cs
- Int16KeyFrameCollection.cs
- Contracts.cs
- WebMessageEncoderFactory.cs
- BitmapEffectDrawingContextWalker.cs
- SamlSubjectStatement.cs
- RotationValidation.cs
- DataServiceRequestOfT.cs
- GacUtil.cs
- TraceFilter.cs
- MemoryFailPoint.cs
- PropertyItemInternal.cs
- EmptyEnumerable.cs
- CLSCompliantAttribute.cs
- ProcessThread.cs
- TdsParser.cs
- _ChunkParse.cs
- XmlDeclaration.cs
- SelectionHighlightInfo.cs
- SendParametersContent.cs
- Compiler.cs
- SqlClientMetaDataCollectionNames.cs
- ParallelEnumerableWrapper.cs
- ConfigPathUtility.cs
- AmbiguousMatchException.cs
- ParallelTimeline.cs
- ManualResetEvent.cs
- SafeEventLogReadHandle.cs
- ClientBuildManagerCallback.cs
- DataGridViewElement.cs
- WebPartCatalogCloseVerb.cs
- HMACSHA384.cs
- IconConverter.cs
- ProfileGroupSettingsCollection.cs
- DbDataSourceEnumerator.cs
- CssTextWriter.cs
- TextSelectionProcessor.cs
- ListItemCollection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- TraceHandler.cs
- AnnotationMap.cs
- JsonDeserializer.cs
- BrowsableAttribute.cs
- UserPersonalizationStateInfo.cs
- WsdlEndpointConversionContext.cs
- SoapIgnoreAttribute.cs
- ChangeTracker.cs
- BindableTemplateBuilder.cs
- _SslSessionsCache.cs
- HtmlTextViewAdapter.cs
- WSFederationHttpBindingCollectionElement.cs
- xml.cs
- ColorPalette.cs
- SortDescriptionCollection.cs
- ObjectDataSourceView.cs
- ZipPackagePart.cs
- PrimitiveSchema.cs
- StorageScalarPropertyMapping.cs
- ExpandedWrapper.cs
- UriTemplateLiteralPathSegment.cs
- TableHeaderCell.cs
- XPathChildIterator.cs
- XmlHierarchyData.cs
- ECDiffieHellman.cs
- BordersPage.cs
- wmiprovider.cs
- IImplicitResourceProvider.cs
- dataobject.cs
- SizeValueSerializer.cs
- NamespaceInfo.cs
- BaseProcessProtocolHandler.cs
- DynamicFilterExpression.cs
- metadatamappinghashervisitor.cs
- EndpointConfigContainer.cs