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
public LightVisualToggleButtonElement()
Fields
Identifies the routed event raised when the toggle state changes to On.
public static RoutedEvent CheckedRoutedEvent
Identifies the routed event raised when the toggle state changes to Indeterminate.
public static RoutedEvent Indeterminate
Identifies the registered routed event for a requested toggle-state change. State changes are reported through the CLR ToggleStateChanging event.
public static RoutedEvent ToggleStateChangingRoutedEvent
Identifies the cancelable property that stores the toggle state; its initial value is Off.
public static RadProperty ToggleStateProperty
Identifies the routed event raised when the toggle state changes to Off.
public static RoutedEvent Unchecked
Properties
Gets or sets the System.Windows.Forms.CheckState?text=+CheckState ++++++++++++++++. CheckState enumeration defines the following values: Unchecked, Checked and Indeterminate.
[Browsable(true)]
[Bindable(true)]
public CheckState CheckState { get; set; }
Gets or sets a value indicating whether the button is checked.
[Browsable(false)]
[Bindable(true)]
public bool IsChecked { get; set; }
Gets or sets a value indicating whether the toggle button has three or two states.
[Browsable(true)]
[Bindable(true)]
public bool IsThreeState { get; set; }
Gets or sets a value indicating whether the toggle button element is read only.
public bool ReadOnly { get; set; }
true if the toggle button element is read only; otherwise, false.
Gets or sets the Telerik.WinControls.Enumerations.ToggleState?text=toggle ++++++++++++++++state. Toggle state enumeration defines the following values: Off, On and Indeterminate.
[Browsable(true)]
[Bindable(true)]
public ToggleState ToggleState { get; set; }
Methods
Raises the StateChanged event.
Raises the CheckStateChanging event.
protected virtual void OnCheckStateChanging(CheckStateChangingEventArgs e)
Toggles the state after normal click handling unless the element is read-only; non-left mouse clicks do not toggle it.
Raises the IsCheckedChanged event.
Advances the state on activation: Off and On alternate, or Off, On, and Indeterminate cycle in three-state mode.
protected virtual void OnToggle()
Raises the StateChanged event.
protected virtual void OnToggleStateChanged(StateChangedEventArgs e)
Raises the StateChanging event.
protected virtual void OnToggleStateChanging(StateChangingEventArgs e)
Applies the requested state if the cancelable state-changing events do not cancel the transition.
protected virtual void SetToggleState(ToggleState value)
The state to apply.
Events
Occurs when the elements's check state changes.
[Browsable(true)]
public event EventHandler CheckStateChanged
Occurs before the elements's check state changes.
[Browsable(true)]
public event CheckStateChangingEventHandler CheckStateChanging
Occurs when the elements's state changes.
[Browsable(true)]
public event StateChangedEventHandler ToggleStateChanged
Occurs before the elements's state changes.
[Browsable(true)]
public event StateChangingEventHandler ToggleStateChanging