Contains values that specify the ToggleState of a UI automation element
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Enumeration ToggleState
public enum ToggleState
|Off||The UI automation element is not selected, checked, marked, or otherwise activated.|
|On||The UI automation element is selected, checked, marked, or otherwise activated.|
|Indeterminate||The UI automation element is in an indeterminate state.|
A control must cycle through its ToggleState in this order:
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.
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.