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
- DelayedRegex.cs
- LayoutDump.cs
- metadatamappinghashervisitor.cs
- Constraint.cs
- MarshalByRefObject.cs
- ParenExpr.cs
- RenderingBiasValidation.cs
- HandleInitializationContext.cs
- StorageMappingFragment.cs
- ValidationHelpers.cs
- DataGridView.cs
- TypeUnloadedException.cs
- BaseTreeIterator.cs
- FileNotFoundException.cs
- ReflectPropertyDescriptor.cs
- BamlBinaryWriter.cs
- InOutArgument.cs
- IIS7UserPrincipal.cs
- MenuCommandService.cs
- RTLAwareMessageBox.cs
- ExpressionEditorAttribute.cs
- TextElementCollectionHelper.cs
- ValidationSummary.cs
- FilterQuery.cs
- precedingquery.cs
- StylusEventArgs.cs
- ActionFrame.cs
- WindowsFormsLinkLabel.cs
- BackEase.cs
- CalendarDesigner.cs
- HostedElements.cs
- DependencyObjectValidator.cs
- XmlAttributeOverrides.cs
- DelegatingConfigHost.cs
- XamlTemplateSerializer.cs
- DeleteHelper.cs
- CodeDelegateInvokeExpression.cs
- Switch.cs
- validation.cs
- PropertyRef.cs
- ChangeProcessor.cs
- Translator.cs
- SoapExtension.cs
- Errors.cs
- Matrix.cs
- _HelperAsyncResults.cs
- WmlPageAdapter.cs
- SynchronizationLockException.cs
- IPPacketInformation.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlSchemaObject.cs
- EditorBrowsableAttribute.cs
- GridPattern.cs
- BamlTreeUpdater.cs
- DataControlHelper.cs
- ImmutableObjectAttribute.cs
- HttpConfigurationSystem.cs
- WpfWebRequestHelper.cs
- PrintPageEvent.cs
- WorkflowMessageEventHandler.cs
- WmlPageAdapter.cs
- XmlDataSource.cs
- TreeViewTemplateSelector.cs
- FontStretches.cs
- HttpApplication.cs
- HealthMonitoringSectionHelper.cs
- OleDbPermission.cs
- ConnectionPoolRegistry.cs
- TextRangeSerialization.cs
- AVElementHelper.cs
- XmlSchemaAttribute.cs
- SwitchElementsCollection.cs
- ParserStreamGeometryContext.cs
- DtdParser.cs
- ActivitiesCollection.cs
- UpdateEventArgs.cs
- HtmlTernaryTree.cs
- JsonReaderWriterFactory.cs
- GridView.cs
- SqlGenericUtil.cs
- FormatterConverter.cs
- SQLChars.cs
- SystemIPAddressInformation.cs
- DependencyPropertyHelper.cs
- InkCanvasSelection.cs
- TransformedBitmap.cs
- Formatter.cs
- ConfigurationSettings.cs
- AnyReturnReader.cs
- EntityProviderFactory.cs
- XmlSchemaComplexContent.cs
- webproxy.cs
- AutomationElementCollection.cs
- OutputScopeManager.cs
- XPathSelfQuery.cs
- XhtmlBasicImageAdapter.cs
- BufferedGraphicsManager.cs
- ReferenceConverter.cs
- DataGridComponentEditor.cs
- HtmlGenericControl.cs