Table of Contents
jSwitch
The jSwitch control implements a sliding switch that can toggle between an on and off state. It has a rich appearance, employing jControls' fill, border, shape, corner radii, drop shadow, and text features.
Group Property
The Group property places the control into a mutually exclusive group. In the video below jSwitch1, 2, and 3 are placed into one group, while jSwitch4, 5, and 6 are placed into another group.
Group names are visible application-wide, so please be sure each group name is unique across the entire application.
IsOn Property
The IsOn property changes the switch's state to either on (true) or off (false), and correspondingly the position of the thumb.
IsOnChanged Event
The IsOnChanged event fires any time the IsOn property changes, and can therefore be used to respond to the operator toggling the switch.
OnAppearance and OffAppearance Properties
The OnAppearance and OffAppearance properties describe the appearance of the control when it is in the on state and off state respectively.
Each have two properties, Thumb and Track, which are described below.
Thumb Property
The Thumb property describes the appearance of the handle that the operate uses to slide the switch back and for between its states.
Track Property
The Track property is used to describe the appearance of the control's track that the thumb slides along.
Text Property
The Text property is a .NET format string, that utilizes the section operator, to specify the text to display on the thumb. The only argument, {0}, is the value of the IsOn property.










