VisualStateChangedEventArgs Class

 

Provides data for the CurrentStateChanging and CurrentStateChanged events.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.EventArgs
    System.Windows.VisualStateChangedEventArgs

Public NotInheritable Class VisualStateChangedEventArgs
	Inherits EventArgs

NameDescription
System_CAPS_pubpropertyControl

Gets the element that is transitioning states.

System_CAPS_pubpropertyNewState

Gets the state that the element is transitioning to or has transitioned to.

System_CAPS_pubpropertyOldState

Gets the state that the element is transitioning to or has transitioned from.

System_CAPS_pubpropertyStateGroupsRoot

Gets the root element that contains the VisualStateManager.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

When the VisualStateGroup that raises the event is set on the ControlTemplate of a control, the Control property is the control that owns the ControlTemplate. When the VisualStateGroup is set on a FrameworkElement that is not in a ControlTemplate, the Control property is null and you should use the StateGroupsRoot property.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: