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
- LambdaCompiler.Lambda.cs
- FileLoadException.cs
- ProviderConnectionPoint.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ColumnWidthChangedEvent.cs
- CustomError.cs
- EtwTrace.cs
- OLEDB_Enum.cs
- EdmSchemaAttribute.cs
- CompModSwitches.cs
- MediaContextNotificationWindow.cs
- GacUtil.cs
- StringCollection.cs
- HandlerBase.cs
- ProtocolsConfigurationEntry.cs
- DbBuffer.cs
- ClientConfigurationHost.cs
- PeerTransportListenAddressConverter.cs
- XmlBaseReader.cs
- TemplateLookupAction.cs
- AxDesigner.cs
- MachineKeySection.cs
- EventMappingSettingsCollection.cs
- CustomCategoryAttribute.cs
- SystemGatewayIPAddressInformation.cs
- WebDisplayNameAttribute.cs
- Solver.cs
- UIAgentCrashedException.cs
- FormsAuthenticationEventArgs.cs
- DeferredTextReference.cs
- FontConverter.cs
- WebBrowsableAttribute.cs
- AssemblyNameEqualityComparer.cs
- ArrayEditor.cs
- BufferedMessageWriter.cs
- ExtensionFile.cs
- ListMarkerSourceInfo.cs
- BrushValueSerializer.cs
- DrawingContext.cs
- UnmanagedMarshal.cs
- documentsequencetextcontainer.cs
- UIAgentInitializationException.cs
- CompositeDataBoundControl.cs
- XmlSchemaAnnotation.cs
- StrongNamePublicKeyBlob.cs
- TextPointerBase.cs
- Int64Converter.cs
- CompoundFileStreamReference.cs
- PersistenceProviderElement.cs
- ActiveXContainer.cs
- SamlSubjectStatement.cs
- FacetEnabledSchemaElement.cs
- XmlParserContext.cs
- XmlHelper.cs
- ZipFileInfoCollection.cs
- PresentationTraceSources.cs
- Point3DCollectionValueSerializer.cs
- SqlException.cs
- ImageMapEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- TrackPointCollection.cs
- CompiledIdentityConstraint.cs
- AssemblyBuilder.cs
- DbDataSourceEnumerator.cs
- ModelPropertyImpl.cs
- TranslateTransform3D.cs
- DbSource.cs
- VisualBrush.cs
- BindingList.cs
- ObjectTypeMapping.cs
- InternalPolicyElement.cs
- ListViewGroup.cs
- ComponentDispatcherThread.cs
- FormatConvertedBitmap.cs
- CustomLineCap.cs
- SQLMoney.cs
- IgnoreFlushAndCloseStream.cs
- MsmqBindingFilter.cs
- EvidenceBase.cs
- MenuItem.cs
- _SafeNetHandles.cs
- TextAction.cs
- ToolstripProfessionalRenderer.cs
- ConnectionManagementElement.cs
- PageVisual.cs
- HostAdapter.cs
- ArrayExtension.cs
- WeakEventManager.cs
- ComponentChangedEvent.cs
- DocumentPageTextView.cs
- DesignerActionPanel.cs
- DbConnectionInternal.cs
- DiffuseMaterial.cs
- ParallelLoopState.cs
- HttpBufferlessInputStream.cs
- ContainerActivationHelper.cs
- CodeDomConfigurationHandler.cs
- GridViewItemAutomationPeer.cs
- LassoSelectionBehavior.cs
- ChannelServices.cs