4 changed files with 40 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||
<UserControl xmlns="https://github.com/perspex"> |
|||
<StackPanel Orientation="Vertical" Gap="4"> |
|||
<TextBlock Classes="h1">CheckBox</TextBlock> |
|||
<TextBlock Classes="h2">A check box control</TextBlock> |
|||
|
|||
<StackPanel Orientation="Vertical" |
|||
Margin="0,16,0,0" |
|||
HorizontalAlignment="Center" |
|||
Gap="16"> |
|||
<CheckBox>Unchecked</CheckBox> |
|||
<CheckBox IsChecked="True">Checked</CheckBox> |
|||
<CheckBox IsEnabled="False">Disabled</CheckBox> |
|||
</StackPanel> |
|||
</StackPanel> |
|||
</UserControl> |
|||
@ -0,0 +1,18 @@ |
|||
using Perspex.Controls; |
|||
using Perspex.Markup.Xaml; |
|||
|
|||
namespace ControlCatalog.Pages |
|||
{ |
|||
public class CheckBoxPage : UserControl |
|||
{ |
|||
public CheckBoxPage() |
|||
{ |
|||
this.InitializeComponent(); |
|||
} |
|||
|
|||
private void InitializeComponent() |
|||
{ |
|||
PerspexXamlLoader.Load(this); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue