5 changed files with 45 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||
|
<UserControl xmlns="https://github.com/perspex"> |
||||
|
<StackPanel Orientation="Vertical" Gap="4"> |
||||
|
<TextBlock Classes="h1">RadioButton</TextBlock> |
||||
|
<TextBlock Classes="h2">Allows the selection of a single option of many</TextBlock> |
||||
|
|
||||
|
<StackPanel Orientation="Vertical" |
||||
|
Margin="0,16,0,0" |
||||
|
HorizontalAlignment="Center" |
||||
|
Gap="16"> |
||||
|
<RadioButton IsChecked="True">Option 1</RadioButton> |
||||
|
<RadioButton>Option 2</RadioButton> |
||||
|
<RadioButton IsEnabled="False">Disabled</RadioButton> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
</UserControl> |
||||
@ -0,0 +1,18 @@ |
|||||
|
using Perspex.Controls; |
||||
|
using Perspex.Markup.Xaml; |
||||
|
|
||||
|
namespace ControlCatalog.Pages |
||||
|
{ |
||||
|
public class RadioButtonPage : UserControl |
||||
|
{ |
||||
|
public RadioButtonPage() |
||||
|
{ |
||||
|
this.InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private void InitializeComponent() |
||||
|
{ |
||||
|
PerspexXamlLoader.Load(this); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue