ClassLightVisualToggleButtonElement
Represents a toggle button element. The toggle button supports two or three states depending on the IsThreeState property.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LightVisualToggleButtonElement : LightVisualButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLightVisualButtonElementLightVisualToggleButtonElement
Derived Classes:
Implements:
Inherited Members
Constructors
LightVisualToggleButtonElement()
Declaration
public LightVisualToggleButtonElement()
Fields
ToggleStateChangingRoutedEvent
Declaration
public static RoutedEvent ToggleStateChangingRoutedEvent
Field Value
Properties
CheckState
Gets or sets the System.Windows.Forms.CheckState?text=+CheckState ++++++++++++++++. CheckState enumeration defines the following values: Unchecked, Checked and Indeterminate.
Declaration
[Browsable(true)]
[Bindable(true)]
public CheckState CheckState { get; set; }
Property Value
IsChecked
Gets or sets a value indicating whether the button is checked.
Declaration
[Browsable(false)]
[Bindable(true)]
public bool IsChecked { get; set; }
Property Value
IsThreeState
Gets or sets a value indicating whether the toggle button has three or two states.
Declaration
[Browsable(true)]
[Bindable(true)]
public bool IsThreeState { get; set; }
Property Value
ReadOnly
Gets or sets a value indicating whether the toggle button element is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
true if the toggle button element is read only; otherwise, false.
ToggleState
Gets or sets the Telerik.WinControls.Enumerations.ToggleState?text=toggle ++++++++++++++++state. Toggle state enumeration defines the following values: Off, On and Indeterminate.
Declaration
[Browsable(true)]
[Bindable(true)]
public ToggleState ToggleState { get; set; }
Property Value
Methods
OnCheckStateChanged(EventArgs)
Raises the StateChanged event.
Declaration
protected virtual void OnCheckStateChanged(EventArgs e)
Parameters
e
OnCheckStateChanging(CheckStateChangingEventArgs)
Raises the CheckStateChanging event.
Declaration
protected virtual void OnCheckStateChanging(CheckStateChangingEventArgs e)
Parameters
e
OnClick(EventArgs)
Raises the Click event.
Declaration
protected override void OnClick(EventArgs e)
Parameters
e
Overrides
OnIsCheckedChanged(EventArgs)
Raises the IsCheckedChanged event.
Declaration
protected virtual void OnIsCheckedChanged(EventArgs e)
Parameters
e
OnToggle()
Declaration
protected virtual void OnToggle()
OnToggleStateChanged(StateChangedEventArgs)
Raises the StateChanged event.
Declaration
protected virtual void OnToggleStateChanged(StateChangedEventArgs e)
Parameters
e
OnToggleStateChanging(StateChangingEventArgs)
Raises the StateChanging event.
Declaration
protected virtual void OnToggleStateChanging(StateChangingEventArgs e)
Parameters
e
SetToggleState(ToggleState)
Declaration
protected virtual void SetToggleState(ToggleState value)
Parameters
value
Events
CheckStateChanged
Occurs when the elements's check state changes.
Declaration
[Browsable(true)]
public event EventHandler CheckStateChanged
Event Value
CheckStateChanging
Occurs before the elements's check state changes.
Declaration
[Browsable(true)]
public event CheckStateChangingEventHandler CheckStateChanging
Event Value
ToggleStateChanged
Occurs when the elements's state changes.
Declaration
[Browsable(true)]
public event StateChangedEventHandler ToggleStateChanged
Event Value
ToggleStateChanging
Occurs before the elements's state changes.
Declaration
[Browsable(true)]
public event StateChangingEventHandler ToggleStateChanging
Event Value