ToggleSwitchAutomationPeer public class ToggleSwitchAutomationPeer : FrameworkElementAutomationPeer, IToggleProvider Documentation Code public ToggleState ToggleState { get; } public ToggleSwitchAutomationPeer(ToggleSwitch owner) Initializes a new instance of the ToggleSwitchAutomationPeer class. public void Toggle()