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
- RegexGroup.cs
- MessageDecoder.cs
- ServicePointManagerElement.cs
- XmlSchemaAttributeGroupRef.cs
- OrderingQueryOperator.cs
- CodeMemberEvent.cs
- RelatedEnd.cs
- DataGridViewRowsRemovedEventArgs.cs
- control.ime.cs
- Win32.cs
- SQLByteStorage.cs
- BidPrivateBase.cs
- IDictionary.cs
- ServiceModelTimeSpanValidator.cs
- XmlProcessingInstruction.cs
- CanonicalXml.cs
- CodeBlockBuilder.cs
- StopStoryboard.cs
- EditingCoordinator.cs
- ServiceEndpointCollection.cs
- ContextTokenTypeConverter.cs
- XmlDictionaryReaderQuotas.cs
- PrimitiveXmlSerializers.cs
- PromptStyle.cs
- InstanceLockLostException.cs
- LabelEditEvent.cs
- storepermission.cs
- HttpRawResponse.cs
- MatrixIndependentAnimationStorage.cs
- ReadWriteObjectLock.cs
- CornerRadiusConverter.cs
- WCFBuildProvider.cs
- DocumentAutomationPeer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- FileLevelControlBuilderAttribute.cs
- Context.cs
- ObjectQuery.cs
- GB18030Encoding.cs
- SqlFunctionAttribute.cs
- ChannelServices.cs
- EditCommandColumn.cs
- StrokeIntersection.cs
- DataGridColumnHeaderAutomationPeer.cs
- ReferenceEqualityComparer.cs
- CalendarDay.cs
- XmlSchemaAll.cs
- WebPartConnectionsCancelVerb.cs
- ColumnWidthChangedEvent.cs
- SelectorItemAutomationPeer.cs
- SchemaElementDecl.cs
- BrowserCapabilitiesCompiler.cs
- EntityParameterCollection.cs
- ToolStripPanel.cs
- WindowShowOrOpenTracker.cs
- WebPartChrome.cs
- ValidationRule.cs
- ExpanderAutomationPeer.cs
- DBSqlParserTableCollection.cs
- MemberHolder.cs
- BamlTreeNode.cs
- EntityTypeBase.cs
- AppModelKnownContentFactory.cs
- DataGridView.cs
- DateTimeFormat.cs
- EntryIndex.cs
- WindowCollection.cs
- SiteMapNodeCollection.cs
- PageAsyncTask.cs
- ComponentChangedEvent.cs
- DetailsViewRow.cs
- TextBlockAutomationPeer.cs
- ContainsSearchOperator.cs
- MenuCommandsChangedEventArgs.cs
- XmlDeclaration.cs
- ForeignConstraint.cs
- CapabilitiesAssignment.cs
- TextEditorTables.cs
- PageWrapper.cs
- GroupBox.cs
- DocumentGrid.cs
- ScrollableControl.cs
- ClientBuildManagerCallback.cs
- UnauthorizedAccessException.cs
- XPathAxisIterator.cs
- _ServiceNameStore.cs
- BinHexEncoding.cs
- LicFileLicenseProvider.cs
- AppDomain.cs
- XmlNamedNodeMap.cs
- ManualResetEvent.cs
- JsonServiceDocumentSerializer.cs
- ITextView.cs
- UndirectedGraph.cs
- SqlDataSourceConnectionPanel.cs
- CalendarDesigner.cs
- SchemaTableColumn.cs
- RowCache.cs
- XmlAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- EntityStoreSchemaFilterEntry.cs