ToggleSwitchAutomationPeer
C# API / Fluence.Wpf.Automation
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Automation
public class ToggleSwitchAutomationPeer : FrameworkElementAutomationPeer, IToggleProvider
Exposes ToggleSwitch to UI Automation with the Toggle pattern.
Remarks: Initializes a new instance.
Parameter owner: The ToggleSwitch control represented by this automation peer.
Base type: FrameworkElementAutomationPeer (including inherited WPF and .NET members)
Constructors
ToggleSwitchAutomationPeer
public ToggleSwitchAutomationPeer(ToggleSwitch owner)
Exposes ToggleSwitch to UI Automation with the Toggle pattern.
Remarks: Initializes a new instance.
Parameter owner: The ToggleSwitch control represented by this automation peer.
Properties
ToggleState
public virtual ToggleState ToggleState { get; }
Documentation inherited from the FrameworkElementAutomationPeer API.
Methods
GetAutomationControlTypeCore
protected override AutomationControlType GetAutomationControlTypeCore()
Documentation inherited from the FrameworkElementAutomationPeer API.
GetClassNameCore
protected override string GetClassNameCore()
Documentation inherited from the FrameworkElementAutomationPeer API.
GetNameCore
protected override string GetNameCore()
Documentation inherited from the FrameworkElementAutomationPeer API.
GetPattern
public override object GetPattern(PatternInterface patternInterface)
Documentation inherited from the FrameworkElementAutomationPeer API.
Toggle
public virtual void Toggle()
Documentation inherited from the FrameworkElementAutomationPeer API.
Exception System.Windows.Automation.ElementNotEnabledException: The control is disabled.