Sprache

TemplateVisualStateAttribute Klasse

Definition

Gibt an, dass sich ein Steuerelement in einem bestimmten Zustand befinden kann und dass ein VisualState in der ControlTemplate des Steuerelements erwartet wird.

public ref class TemplateVisualStateAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class TemplateVisualStateAttribute final : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("templatevisualstate")]
class TemplateVisualStateAttribute final : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class TemplateVisualStateAttribute : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("templatevisualstate")]
public sealed class TemplateVisualStateAttribute : Attribute
Public NotInheritable Class TemplateVisualStateAttribute
Inherits Attribute
Vererbung
TemplateVisualStateAttribute
Attribute

Windows-Anforderungen

Anforderungen Beschreibung
Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Konstruktoren

Name Beschreibung
TemplateVisualStateAttribute()

Initialisiert eine neue instance der TemplateVisualStateAttribute-Klasse.

Felder

Name Beschreibung
GroupName

Gibt an, dass sich ein Steuerelement in einem bestimmten Zustand befinden kann und dass ein VisualState in der ControlTemplate des Steuerelements erwartet wird.

Name

Gibt an, dass sich ein Steuerelement in einem bestimmten Zustand befinden kann und dass ein VisualState in der ControlTemplate des Steuerelements erwartet wird.

Gilt für:

Siehe auch