Export (0) Print
Expand All

ToggleState Enumeration

Contains values that specify the ToggleState of a UI automation element

Namespace:  System.Windows.Automation
Assembly:  System.Windows (in System.Windows.dll)

public enum ToggleState

Member nameDescription
Supported by Silverlight for Windows PhoneOffThe UI automation element is not selected, checked, marked, or otherwise activated.
Supported by Silverlight for Windows PhoneOnThe UI automation element is selected, checked, marked, or otherwise activated.
Supported by Silverlight for Windows PhoneIndeterminateThe UI automation element is in an indeterminate state.

A control must cycle through its ToggleState in this order:

  1. On

  2. Off

  3. Indeterminate (if supported)

The Indeterminate value can be used to indicate whether the user has acted on a control. For example, a check box can be displayed as both checked and dimmed, which indicates an indeterminate state.

Creating an indeterminate state is different from disabling the control. Consequently, a check box in the indeterminate state can still receive the focus. When the user clicks an indeterminate control, the ToggleState value cycles to the next value.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft