Radio Group
A set of options where only one can be checked.
Installation
bash
shellui-native add radio-group
Platforms: MAUI · Avalonia. Also installs element-extensions, radio-group-item.
Usage
Basic
<ui:RadioGroup Value="comfortable">
<ui:RadioGroupItem Value="default" Text="Default" />
<ui:RadioGroupItem Value="comfortable" Text="Comfortable" />
<ui:RadioGroupItem Value="compact" Text="Compact" />
</ui:RadioGroup><ui:RadioGroup Value="comfortable">
<ui:RadioGroupItem Value="default" Text="Default" />
<ui:RadioGroupItem Value="comfortable" Text="Comfortable" />
<ui:RadioGroupItem Value="compact" Text="Compact" />
</ui:RadioGroup>Not available on yet
API
RadioGroup
XAML children go to Children.
| Property | Type | Default | Description |
|---|---|---|---|
Value |
string |
— | Value of the checked item. Two-way bindable. |
| Event | Arguments | Description |
|---|---|---|
ValueChanged |
string |
User input only: setting Value from code or a binding doesn't raise it. |
| Method | Description |
|---|---|
SetValue(string value) |
Selects the item with this value. |
RadioGroupItem
| Property | Type | Default | Description |
|---|---|---|---|
Value |
string |
— | Value this item stands for. |
Text |
string |
— | Text shown by the component. |