XamlToggleSwitch.IsOn Property

Gets or sets the pressed state of the toggle-switch.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public Overridable Property IsOn As Boolean
public virtual bool IsOn { get; set; }
public:
virtual property bool IsOn {
    bool get ();
    void set (bool value);
}
abstract IsOn : bool with get, set 
override IsOn : bool with get, set
function get IsOn () : boolean 
function set IsOn (value : boolean)

Property Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

XamlToggleSwitch Class

Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls Namespace