VisualStateChangedEventArgs 类

定义

提供有关 CurrentStateChangingCurrentStateChanged 事件的数据。Provides data for the CurrentStateChanging and CurrentStateChanged events.

public ref class VisualStateChangedEventArgs sealed : EventArgs
public sealed class VisualStateChangedEventArgs : EventArgs
type VisualStateChangedEventArgs = class
    inherit EventArgs
Public NotInheritable Class VisualStateChangedEventArgs
Inherits EventArgs
继承
VisualStateChangedEventArgs

注解

如果在控件ControlTemplate ControlTemplate的上设置了引发事件的, 则属性是拥有的控件。Control VisualStateGroupWhen the VisualStateGroup that raises the event is set on the ControlTemplate of a control, the Control property is the control that owns the ControlTemplate. FrameworkElement ControlTemplate如果在Control不在中的上设置, 则属性为null , 并且应使用StateGroupsRoot属性。 VisualStateGroupWhen 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.

属性

Control

获取正在转换状态的元素。Gets the element that is transitioning states.

NewState

获取元素正在转换到或已转换到的状态。Gets the state that the element is transitioning to or has transitioned to.

OldState

获取元素正在转换到已从其转换而来的状态。Gets the state that the element is transitioning to or has transitioned from.

StateGroupsRoot

获取包含 VisualStateManager 的根元素。Gets the root element that contains the VisualStateManager.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于