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
- DomNameTable.cs
- SchemaNotation.cs
- Scanner.cs
- Stylesheet.cs
- Char.cs
- GetPageNumberCompletedEventArgs.cs
- CompilerHelpers.cs
- StrongNameSignatureInformation.cs
- RegexRunner.cs
- SQLDouble.cs
- ELinqQueryState.cs
- HttpCookieCollection.cs
- PolicyException.cs
- OperationCanceledException.cs
- TransformationRules.cs
- Underline.cs
- CommonRemoteMemoryBlock.cs
- DebugInfoGenerator.cs
- DependencyObject.cs
- Trigger.cs
- Compiler.cs
- DataServiceQueryOfT.cs
- EmptyReadOnlyDictionaryInternal.cs
- BasePattern.cs
- XmlSchemaDocumentation.cs
- SqlGenericUtil.cs
- BaseTreeIterator.cs
- StringReader.cs
- HelpPage.cs
- CustomValidator.cs
- HMACSHA384.cs
- AbstractDataSvcMapFileLoader.cs
- OleDbRowUpdatingEvent.cs
- SqlFileStream.cs
- XmlDataLoader.cs
- ExpandCollapsePattern.cs
- SettingsAttributes.cs
- WebPartMenu.cs
- ContextStaticAttribute.cs
- ToolStripCollectionEditor.cs
- XPathChildIterator.cs
- TagPrefixAttribute.cs
- HwndSourceParameters.cs
- XsdDataContractImporter.cs
- TypeContext.cs
- CompilationSection.cs
- SamlAdvice.cs
- SrgsRule.cs
- AssemblyAttributesGoHere.cs
- ListViewGroupItemCollection.cs
- ComponentResourceKeyConverter.cs
- PrintDialog.cs
- BitmapSourceSafeMILHandle.cs
- UriParserTemplates.cs
- ActivityExecutionContextCollection.cs
- DropSource.cs
- ClientSettings.cs
- Border.cs
- TabItemWrapperAutomationPeer.cs
- LineServicesCallbacks.cs
- ConnectionProviderAttribute.cs
- ParameterCollection.cs
- EdmProperty.cs
- ClickablePoint.cs
- ScriptResourceHandler.cs
- DataGrid.cs
- XD.cs
- DefinitionBase.cs
- XmlTextReaderImpl.cs
- ToolStripProgressBar.cs
- BinHexDecoder.cs
- ApplicationSettingsBase.cs
- ThemeDirectoryCompiler.cs
- WsatServiceCertificate.cs
- CodeAttributeArgument.cs
- regiisutil.cs
- AvTraceDetails.cs
- SqlUtil.cs
- TaiwanCalendar.cs
- DocumentSchemaValidator.cs
- ShellProvider.cs
- CorrelationKeyCalculator.cs
- PageRouteHandler.cs
- ProviderBase.cs
- JavaScriptString.cs
- __FastResourceComparer.cs
- RouteUrlExpressionBuilder.cs
- WindowsGraphicsCacheManager.cs
- X509CertificateStore.cs
- XPathBinder.cs
- PrintDocument.cs
- NativeMethods.cs
- LinkClickEvent.cs
- SqlDependencyListener.cs
- InternalBufferOverflowException.cs
- WebResourceUtil.cs
- ServicePointManager.cs
- IISMapPath.cs
- BezierSegment.cs
- BrowserTree.cs