Class Switch
A View control that provides a toggled value.
Inheritance
System.Object
Switch
Inherited Members
Namespace: Tizen.UIExtensions.NUI.GraphicsView
Assembly: Tizen.UIExtensions.NUI.dll
Syntax
public class Switch : GraphicsView<SwitchDrawable>, IMeasurable, ISwitch
Constructors
Switch()
Initializes a new instance of the Switch class.
Declaration
public Switch()
Properties
BackgroundColor
Gets or sets the color which will fill the background.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
IsToggled
Gets or sets a Boolean value that indicates whether this Switch element is toggled.
Declaration
public bool IsToggled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OnColor
Gets or sets the color of the switch when it is in the "On" position.
Declaration
public Color OnColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ThumbColor
Gets or sets the color of the thumb
Declaration
public Color ThumbColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Events
Toggled
Event that is raised when this Switch is toggled.
Declaration
public event EventHandler Toggled
Event Type
Type | Description |
---|---|
System.EventHandler |