ToggleButtonBase Class
Definition
Section titled “Definition”Base class for toggle button controls, such as CheckBox and RadioButton.
[DataContract]public abstract class ToggleButtonBase : ButtonBaseInheritance object → ControlBase → ButtonBase
Constructors
Section titled “Constructors”ToggleButtonBase(int, int)
Section titled “ToggleButtonBase(int, int)”Creates an instance of the button control with the specified width and height.
protected ToggleButtonBase(int width, int height)Parameters
Section titled “Parameters”width int
Width of the control.
height int
Height of the control (default is 1).
ToggleButtonBase()
Section titled “ToggleButtonBase()”Creates an automatically sized button.
protected ToggleButtonBase()Properties
Section titled “Properties”IsSelected
Section titled “IsSelected”Gets or sets the selected state of the radio button.
public bool IsSelected { get; set; }Remarks
Section titled “Remarks”Radio buttons within the same group will set their IsSelected property to the opposite of this radio button when you set this property.
Methods
Section titled “Methods”OnIsSelected()
Section titled “OnIsSelected()”Raises the IsSelectedChanged event.
protected virtual void OnIsSelected()Events
Section titled “Events”IsSelectedChanged
Section titled “IsSelectedChanged”Raised when the selected state of the radio button is changed.
public event EventHandler? IsSelectedChanged