Share via


ExpanderAutomationPeer Klasse

Definition

Macht Erweiterungstypen für Microsoft Benutzeroberflächenautomatisierung verfügbar.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class ExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class ExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class ExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class ExpanderAutomationPeer : FrameworkElementAutomationPeer, IExpandCollapseProvider
Public Class ExpanderAutomationPeer
Inherits FrameworkElementAutomationPeer
Implements IExpandCollapseProvider
Vererbung
ExpanderAutomationPeer
Attribute
Implementiert

Konstruktoren

ExpanderAutomationPeer(Expander)

Initialisiert eine neue Instanz der ExpanderAutomationPeer-Klasse .

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

Eigenschaften

ExpandCollapseState

Ruft den Wert der Expander.IsExpanded-Eigenschaft ab und gibt zurück, ob der Expander derzeit erweitert oder reduziert wird.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

Methoden

Collapse()

Blendet den Inhaltsbereich des Steuerelements aus.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

Expand()

Zeigt den Inhaltsbereich des Steuerelements an.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

Gilt für: