VisualState 類別

定義

代表一個具名的視覺狀態,並有設定器與觸發器,定義控制項的外觀。

public ref class VisualState sealed
public sealed class VisualState
type VisualState = class
Public NotInheritable Class VisualState
繼承
VisualState

備註

透過視覺狀態物件,開發者可以將新穎的視覺狀態名稱與一串屬性設定器關聯起來,這些屬性設定器會讓控制項代表該狀態。 這讓開發者不必依賴所提供的狀態來控制,能隨著使用者工作流程的進展,更細緻地控制應用程式的外觀。

建構函式

名稱 Description
VisualState()

初始化 VisualState 類別的新實例。

屬性

名稱 Description
Name

取得或設定視覺狀態名稱(例如「正常」、「聚焦」、「停用」)。

Setters

取得定義此狀態屬性值的物件集合 Setter

StateTriggers

取得啟動此狀態的物件集合 StateTriggerBase

TargetType

取得或設定此視覺狀態所針對的類型。

方法

名稱 Description
Equals(Object)

代表一個具名的視覺狀態,並有設定器與觸發器,定義控制項的外觀。

GetHashCode()

代表一個具名的視覺狀態,並有設定器與觸發器,定義控制項的外觀。

適用於