Class RadioButton
Represents a button that allows a user to select a single option from a group of options.
Inheritance
System.Object
RadioButton
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class RadioButton : ToggleButton
Constructors
| Improve this Doc View SourceRadioButton()
Initializes a new instance of the RadioButton class.
Declaration
public RadioButton()
Fields
| Improve this Doc View SourceGroupNameProperty
Identifies the GroupName dependency property.
Declaration
public static readonly DependencyProperty GroupNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceGroupName
Gets or sets the name that specifies which RadioButton controls are mutually exclusive.
Declaration
public string GroupName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name that specifies which RadioButton controls are mutually exclusive. The default is null. |
Methods
| Improve this Doc View SourceOnChecked(RoutedEventArgs)
This method is invoked when the IsChecked becomes true.
Declaration
protected override void OnChecked(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
RoutedEventArgs | e | RoutedEventArgs. |
Overrides
| Improve this Doc View SourceOnToggle()
Sets the IsChecked property to
true
.
Declaration
protected override void OnToggle()