Share via


TemplateVisualStateAttribute 類別

定義

指定控制項可以處於特定狀態,而且 VisualState 必須是控制項的 ControlTemplate

public ref class TemplateVisualStateAttribute sealed : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public sealed class TemplateVisualStateAttribute : Attribute
Public NotInheritable Class TemplateVisualStateAttribute
Inherits Attribute
繼承
TemplateVisualStateAttribute
屬性

建構函式

TemplateVisualStateAttribute()

初始化 TemplateVisualStateAttribute 類別的新實例。

欄位

GroupName

指定控制項可以處於特定狀態,而且 VisualState 必須是控制項的 ControlTemplate

Name

指定控制項可以處於特定狀態,而且 VisualState 必須是控制項的 ControlTemplate

適用於

另請參閱