Class RadioGroup
A layout for a set of radio buttons that keeps one of them selected. Code can create one; a view file cannot, so radio buttons declared in a view are grouped by their container instead.
public class RadioGroup : LayoutControl, IUpdateable, IEquatable<IUpdateable>, IDrawable, IIdentifiable<Guid>, IEquatable<IDrawable>, IDisposable
- Inheritance
-
RadioGroup
- Implements
- Inherited Members
Constructors
RadioGroup(ILogger, View)
Creates an empty radio group in view.
public RadioGroup(ILogger logger, View view)
Parameters
Properties
Selected
The radio button that is ticked, or null when none is.
public RadioButton Selected { get; }
Property Value
Methods
AddChild(UIElement)
Adds child. A radio button added joins the group, and becomes Selected when it is ticked and nothing else is selected.
public override void AddChild(UIElement child)
Parameters
childUIElement
ArrangeControls()
Does nothing: a radio group does not arrange its buttons. Put them in a layout inside it to arrange them.
protected override void ArrangeControls()
NotifySelected(RadioButton)
Ticks selected and unticks the other radio buttons in the group. Records
it as Selected.
public void NotifySelected(RadioButton selected)
Parameters
selectedRadioButton