Class LightVisualToggleButtonElement
Represents a toggle button element. The toggle button supports two or three states depending on the IsThreeState property.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class LightVisualToggleButtonElement : LightVisualButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
LightVisualToggleButtonElement()
Declaration
public LightVisualToggleButtonElement()
Fields
CheckedRoutedEvent
Indeterminate
ToggleStateChangingRoutedEvent
ToggleStateProperty
Unchecked
Properties
CheckState
Gets or sets the System.
Declaration
public CheckState CheckState { get; set; }
Property Value
System.
|
IsChecked
Gets or sets a value indicating whether the button is checked.
Declaration
public bool IsChecked { get; set; }
Property Value
System.
|
IsThreeState
Gets or sets a value indicating whether the toggle button has three or two states.
Declaration
public bool IsThreeState { get; set; }
Property Value
System.
|
ReadOnly
Gets or sets a value indicating whether the toggle button element is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.
|
ToggleState
Gets or sets the Toggle
Declaration
[RadPropertyDefaultValue("ToggleState", typeof(LightVisualToggleButtonElement))]
public ToggleState ToggleState { get; set; }
Property Value
Methods
OnCheckStateChanged(EventArgs)
Raises the StateChanged event.
Declaration
protected virtual void OnCheckStateChanged(EventArgs e)
Parameters
System.
|
OnCheckStateChanging(CheckStateChangingEventArgs)
Raises the CheckStateChanging event.
Declaration
protected virtual void OnCheckStateChanging(CheckStateChangingEventArgs e)
Parameters
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.
|
Overrides
OnIsCheckedChanged(EventArgs)
Raises the IsCheckedChanged event.
Declaration
protected virtual void OnIsCheckedChanged(EventArgs e)
Parameters
System.
|
OnToggle()
Declaration
protected virtual void OnToggle()
OnToggleStateChanged(StateChangedEventArgs)
Raises the StateChanged event.
Declaration
protected virtual void OnToggleStateChanged(StateChangedEventArgs e)
Parameters
OnToggleStateChanging(StateChangingEventArgs)
Raises the StateChanging event.
Declaration
protected virtual void OnToggleStateChanging(StateChangingEventArgs e)
Parameters
SetToggleState(ToggleState)
Events
CheckStateChanged
Occurs when the elements's check state changes.
Declaration
public event EventHandler CheckStateChanged
Event Type
System.
|
CheckStateChanging
Occurs before the elements's check state changes.
Declaration
public event CheckStateChangingEventHandler CheckStateChanging
Event Type
ToggleStateChanged
Occurs when the elements's state changes.
Declaration
public event StateChangedEventHandler ToggleStateChanged
Event Type
ToggleStateChanging
Occurs before the elements's state changes.
Declaration
public event StateChangingEventHandler ToggleStateChanging