Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


ToggleButtonElement

ToggleButton is identical to a button except that it adds "selected" versions of
the 4 button states and Toggles from selected to not-selected when clicked. It also
dispatches a "changed" event when the selected state changes.
ToggleButton selected states:
"selectedUp", "selectedOver", "selectedDown", "selectedDisabled".
Being a SkinnableElement, ToggleButton proxies its styles to its skins.
You may assign custom skins and assign any styles you wish to apply to all skins to the ToggleButton itself.
ToggleButton is a base class for components such as Checkbox and RadioButton.

Inheritance:     ToggleButtonElement ➞ ButtonElementSkinnableElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
AllowDeselect     :    boolean ToggleButtonElement
When false, the ToggleButton cannot be de-selected by the user and the "selectedOver" and "selectedDown" states are not used,
as with the case for most tab or radio button type elements.
 
SelectedDisabledSkinClass     :    CanvasElement ToggleButtonElement
The CanvasElement constructor to be used for the button skin when the button is in the "selectedDisabled" state.
This will override SkinClass when equal or higher priority than SkinClass.
 
SelectedDisabledSkinStyle     :    StyleDefinition ToggleButtonElement
The StyleDefinition or [StyleDefinition] array to apply to the "selectedDisabled" state skin element.
 
SelectedDisabledTextColor     :    String ToggleButtonElement
Hex color value to be used for the button label when the button is in the "selectedDisabled" state. Format like "#FF0000" (red).
This will override TextColor when equal or higher priority than TextColor.
 
SelectedDownSkinClass     :    CanvasElement ToggleButtonElement
The CanvasElement constructor to be used for the button skin when the button is in the "selectedDown" state.
This will override SkinClass when equal or higher priority than SkinClass.
 
SelectedDownSkinStyle     :    StyleDefinition ToggleButtonElement
The StyleDefinition or [StyleDefinition] array to apply to the "selectedDown" state skin element.
 
SelectedDownTextColor     :    String ToggleButtonElement
Hex color value to be used for the button label when the button is in the "selectedDown" state. Format like "#FF0000" (red).
This will override TextColor when equal or higher priority than TextColor.
 
SelectedOverSkinClass     :    CanvasElement ToggleButtonElement
The CanvasElement constructor to be used for the button skin when the button is in the "selectedOver" state.
This will override SkinClass when equal or higher priority than SkinClass.
 
SelectedOverSkinStyle     :    StyleDefinition ToggleButtonElement
The StyleDefinition or [StyleDefinition] array to apply to the "selectedOver" state skin element.
 
SelectedOverTextColor     :    String ToggleButtonElement
Hex color value to be used for the button label when the button is in the "selectedOver" state. Format like "#FF0000" (red).
This will override TextColor when equal or higher priority than TextColor.
 
SelectedUpSkinClass     :    CanvasElement ToggleButtonElement
The CanvasElement constructor to be used for the button skin when the button is in the "selectedUp" state.
This will override SkinClass when equal or higher priority than SkinClass.
 
SelectedUpSkinStyle     :    StyleDefinition ToggleButtonElement
The StyleDefinition or [StyleDefinition] array to apply to the "selectedUp" state skin element.
 
SelectedUpTextColor     :    String ToggleButtonElement
Hex color value to be used for the button label when the button is in the "selectedUp" state. Format like "#FF0000" (red).
This will override TextColor when equal or higher priority than TextColor.
 


Events
Show Inherited
Event Defined By
changed     :    ElementEvent ToggleButtonElement
Dispatched when the ToggleButton's selection state changes as a result of user interaction.
 


Public Functions
Show Inherited
Function Defined By
ToggleButtonElement() [Constructor] ToggleButtonElement
Creates new ToggleButtonElement instance.
 
getSelected() ToggleButtonElement
Gets the selected state of the ToggleButton.
  returns     :    boolean
When true the toggle button is selected.
 
setSelected(isSelected) ToggleButtonElement
Sets the selected state of the ToggleButton.
  isSelected     :    boolean
When true the toggle button is selected.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited