Class RadioGroup
Displays a group of labels each with a selected indicator. Only one of those can be selected at a given time.
public class RadioGroup : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
- Inheritance
-
RadioGroup
- Implements
- Inherited Members
Constructors
- RadioGroup()
Initializes a new instance of the RadioGroup class using Computed layout.
Properties
- HorizontalSpace
Gets or sets the horizontal space for this RadioGroup if the Orientation is Horizontal
- Orientation
Gets or sets the Orientation for this RadioGroup. The default is Vertical.
- RadioLabels
The radio labels to display. A key binding will be added for each radio radio enabling the user to select and/or focus the radio label using the keyboard. See HotKey for details on how HotKeys work.
- SelectedItem
The currently selected item from the list of radio labels
Methods
- OnDrawContent(Rectangle)
Draws the view's content, including Subviews.
- OnInvokingKeyBindings(Key)
Low-level API called when a user presses a key; invokes any key bindings set on the view. This is called during NewKeyDownEvent(Key) after OnKeyDown(Key) has returned.
- OnOrientationChanged(Orientation)
Called when the view orientation has changed. Invokes the OrientationChanged event.
- OnSelectedItemChanged(int, int)
Called whenever the current selected item changes. Invokes the SelectedItemChanged event.
- PositionCursor()
Positions the cursor in the right position based on the currently focused view in the chain.
- Refresh()
Allow to invoke the SelectedItemChanged after their creation.
Events
- OrientationChanged
Fired when the view orientation has changed. Can be cancelled by setting Cancel to true.
- SelectedItemChanged
Invoked when the selected radio label has changed.