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
- ReferentialConstraint.cs
- ListViewGroupConverter.cs
- IMembershipProvider.cs
- GroupPartitionExpr.cs
- Listbox.cs
- TraceXPathNavigator.cs
- EmptyCollection.cs
- URLString.cs
- XmlSchemaExternal.cs
- Pair.cs
- _Win32.cs
- ConfigXmlText.cs
- CultureInfo.cs
- Floater.cs
- SecurityVersion.cs
- RadialGradientBrush.cs
- __TransparentProxy.cs
- GuidelineCollection.cs
- XamlToRtfWriter.cs
- DataStreams.cs
- UnionCodeGroup.cs
- OutputCacheProfile.cs
- EdgeProfileValidation.cs
- ConfigXmlSignificantWhitespace.cs
- EffectiveValueEntry.cs
- DataRelation.cs
- ObjectNavigationPropertyMapping.cs
- XmlLanguageConverter.cs
- ConfigurationValues.cs
- EntityDataSourceChangingEventArgs.cs
- CategoryGridEntry.cs
- DataList.cs
- ScriptComponentDescriptor.cs
- XmlSchemaAll.cs
- PageBreakRecord.cs
- TakeQueryOptionExpression.cs
- ToolboxItemImageConverter.cs
- DocumentGridPage.cs
- TranslateTransform.cs
- MdiWindowListItemConverter.cs
- BindingRestrictions.cs
- HtmlTableRowCollection.cs
- SystemBrushes.cs
- WorkflowApplicationEventArgs.cs
- PathFigureCollectionValueSerializer.cs
- CompilationUtil.cs
- AccessDataSourceView.cs
- CommonRemoteMemoryBlock.cs
- TemplateBuilder.cs
- FillErrorEventArgs.cs
- ListSortDescription.cs
- Constant.cs
- CompatibleComparer.cs
- EventLogPermissionEntryCollection.cs
- UseAttributeSetsAction.cs
- PasswordBox.cs
- AnnotationHelper.cs
- CreateUserWizard.cs
- DSACryptoServiceProvider.cs
- ReverseInheritProperty.cs
- X509ChainElement.cs
- SystemResourceHost.cs
- SmtpException.cs
- Signature.cs
- PauseStoryboard.cs
- KeyConverter.cs
- HWStack.cs
- ContextMenuStrip.cs
- CollectionView.cs
- SqlBinder.cs
- LambdaCompiler.Address.cs
- GlyphInfoList.cs
- CustomValidator.cs
- EntityDataSourceStatementEditorForm.cs
- TextTreeInsertElementUndoUnit.cs
- SystemFonts.cs
- TextElementEditingBehaviorAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- AbsoluteQuery.cs
- VisualTreeHelper.cs
- OleTxTransaction.cs
- Form.cs
- BinarySerializer.cs
- Rijndael.cs
- StateItem.cs
- altserialization.cs
- Assert.cs
- OSEnvironmentHelper.cs
- MachineKeySection.cs
- _SafeNetHandles.cs
- COM2Properties.cs
- UnhandledExceptionEventArgs.cs
- EpmSyndicationContentSerializer.cs
- NonParentingControl.cs
- ClosableStream.cs
- SourceSwitch.cs
- AuthenticateEventArgs.cs
- SweepDirectionValidation.cs
- MailAddressCollection.cs
- XmlSigningNodeWriter.cs