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
public static RoutedEvent CheckedRoutedEvent
public static RoutedEvent Indeterminate
public static RoutedEvent ToggleStateChangingRoutedEvent
public static RadProperty ToggleStateProperty
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)
Raises the Click event.
Raises the IsCheckedChanged event.
protected virtual void OnToggle()
Raises the StateChanged event.
protected virtual void OnToggleStateChanged(StateChangedEventArgs e)
Raises the StateChanging event.
protected virtual void OnToggleStateChanging(StateChangingEventArgs e)
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