Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / VisualStateChangedEventArgs.cs / 1305600 / VisualStateChangedEventArgs.cs
// --------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// -------------------------------------------------------------------
using System.Windows.Controls;
namespace System.Windows
{
///
/// EventArgs for VisualStateGroup.CurrentStateChanging and CurrentStateChanged events.
///
///
/// This class works on Framework elements, however we call the property 'Control' for name-compat with what SL already released.
///
public sealed class VisualStateChangedEventArgs : EventArgs
{
internal VisualStateChangedEventArgs(VisualState oldState, VisualState newState, FrameworkElement control, FrameworkElement stateGroupsRoot)
{
_oldState = oldState;
_newState = newState;
_control = control;
_stateGroupsRoot = stateGroupsRoot;
}
///
/// The old state the control is transitioning from
///
public VisualState OldState
{
get
{
return _oldState;
}
}
///
/// The new state the control is transitioning to
///
public VisualState NewState
{
get
{
return _newState;
}
}
///
/// The control involved in the state change
///
public FrameworkElement Control
{
get
{
return _control;
}
}
///
/// The element that contained the VisualStateGroups and/or custom VSM
///
public FrameworkElement StateGroupsRoot
{
get
{
return _stateGroupsRoot;
}
}
private VisualState _oldState;
private VisualState _newState;
private FrameworkElement _control;
private FrameworkElement _stateGroupsRoot;
}
}
// 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
- FlowSwitchDesigner.xaml.cs
- StreamResourceInfo.cs
- DictionaryItemsCollection.cs
- SolidColorBrush.cs
- FontResourceCache.cs
- URLString.cs
- Utils.cs
- DataControlFieldTypeEditor.cs
- GridEntryCollection.cs
- SqlUtils.cs
- BaseHashHelper.cs
- Padding.cs
- GridItem.cs
- counter.cs
- Transform.cs
- BitmapFrameDecode.cs
- SqlCrossApplyToCrossJoin.cs
- AnnotationHighlightLayer.cs
- SafeArrayRankMismatchException.cs
- DrawTreeNodeEventArgs.cs
- NumericUpDownAcceleration.cs
- TextModifierScope.cs
- SafeFileMapViewHandle.cs
- FontEmbeddingManager.cs
- StreamingContext.cs
- SafeArrayRankMismatchException.cs
- SqlDataSourceDesigner.cs
- DocComment.cs
- TraversalRequest.cs
- RegistrySecurity.cs
- LogicalExpressionTypeConverter.cs
- SocketSettings.cs
- RepeatInfo.cs
- WS2007FederationHttpBindingElement.cs
- FlowDocumentView.cs
- TerminateWorkflow.cs
- XmlAtomicValue.cs
- DynamicObject.cs
- DataGridViewDataErrorEventArgs.cs
- CodeTypeDeclaration.cs
- TextTreeRootNode.cs
- XmlWriter.cs
- ColorConverter.cs
- IDReferencePropertyAttribute.cs
- CreateUserErrorEventArgs.cs
- NullEntityWrapper.cs
- LongCountAggregationOperator.cs
- DefaultObjectSerializer.cs
- LoginDesignerUtil.cs
- httpserverutility.cs
- Clock.cs
- ColumnTypeConverter.cs
- FormsAuthentication.cs
- DataViewSettingCollection.cs
- DragDropHelper.cs
- InheritablePropertyChangeInfo.cs
- Stopwatch.cs
- EventSetterHandlerConverter.cs
- DataGridViewRowCancelEventArgs.cs
- HwndMouseInputProvider.cs
- TextParagraphCache.cs
- StylusOverProperty.cs
- DynamicEntity.cs
- SessionStateContainer.cs
- SessionEndingCancelEventArgs.cs
- TreeViewImageIndexConverter.cs
- XmlWrappingWriter.cs
- SqlTopReducer.cs
- DbConnectionPoolGroupProviderInfo.cs
- SettingsPropertyIsReadOnlyException.cs
- TextEditorContextMenu.cs
- MessageSecurityProtocolFactory.cs
- ThreadInterruptedException.cs
- ApplicationManager.cs
- MenuStrip.cs
- BitmapCodecInfo.cs
- FontWeight.cs
- OrderPreservingPipeliningSpoolingTask.cs
- IconHelper.cs
- DownloadProgressEventArgs.cs
- UseAttributeSetsAction.cs
- CodeGenerator.cs
- VirtualPathProvider.cs
- SerializationSectionGroup.cs
- Inline.cs
- TypeRestriction.cs
- CodeDelegateCreateExpression.cs
- LocalIdKeyIdentifierClause.cs
- Timer.cs
- DateTimeParse.cs
- SimpleNameService.cs
- DataGridViewRowStateChangedEventArgs.cs
- CalendarDesigner.cs
- XmlSchemaSequence.cs
- CompressEmulationStream.cs
- KeyValueInternalCollection.cs
- SchemaCompiler.cs
- BuildResultCache.cs
- PolicyManager.cs
- ToolStripItemCollection.cs