Table of Contents

Class RadioButton

Namespace
BSGameLib.UI.Controls
Assembly
BSGameLib.UI.dll

A check box in a radio set: ticking one unticks the others in its set.

public class RadioButton : CheckBox, IUpdateable, IEquatable<IUpdateable>, IDrawable, IIdentifiable<Guid>, IEquatable<IDrawable>, IDisposable
Inheritance
RadioButton
Implements
Inherited Members

Constructors

RadioButton(ILogger, View, string)

Creates a radio button in view.

public RadioButton(ILogger logger, View view, string controlId)

Parameters

logger ILogger
view View
controlId string

Properties

CheckedRegion

The name of the picture region drawn for a ticked box. RadioButton overrides it.

protected override string CheckedRegion { get; }

Property Value

string

UncheckedRegion

The name of the picture region drawn for an unticked box. RadioButton overrides it.

protected override string UncheckedRegion { get; }

Property Value

string

Methods

OnClicked()

Called when the box is clicked, or Space is pressed while it has focus. Toggles Checked.

protected override void OnClicked()