Skip to main content

IToggleProvider Interface

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Exposes methods and properties to support UI Automation client access to controls that can cycle through a set of states and maintain a particular state.

public interface IToggleProvider

Methods

NameDescription
ToggleCycles through the toggle states of a control.

Toggle Method

Cycles through the toggle states of a control.

public void Toggle()

Remarks

  • WindowsIToggleProvider.Toggle
  • macOSNSAccessibilityProtocol.accessibilityPerformPress

Properties

NameDescription
ToggleStateGets the toggle state of the control.

ToggleState Property

Gets the toggle state of the control.

public Avalonia.Automation.Provider.ToggleState ToggleState { get; set; }

Remarks

  • WindowsIToggleProvider.ToggleState
  • macOSNSAccessibilityProtocol.accessibilityValue