VisualStateChangedEventArgs.Control 屬性

定義

取得正在轉換狀態的項目。

public:
 property System::Windows::FrameworkElement ^ Control { System::Windows::FrameworkElement ^ get(); };
public System.Windows.FrameworkElement Control { get; }
member this.Control : System.Windows.FrameworkElement
Public ReadOnly Property Control As FrameworkElement

屬性值

FrameworkElement

如果 VisualStateGroup 是在 ControlTemplate 中,則為轉換狀態的項目,否則為 null

備註

VisualStateGroup在 不在 的 ControlTemplateFrameworkElement 設定 時,屬性 Controlnull ,而且您應該使用 StateGroupsRoot 屬性。

適用於