XAML CheckBox
CheckBox element represents a CheckBox in XAML. This article shows how to create and use a CheckBox control in XAML.
<CheckBox/> element of XAML represents a CheckBox.
The following code shows how to create a CheckBox control.
<Grid xmlns="http://schemas.microsoft.com/winfx/avalon/2005" Width="200" Height="200">
<StackPanel>
<BulletPanel Margin="10,2,0,10">
<CheckBox ID="checkBox1" Foreground="Green">C# Corner</CheckBox>
</BulletPanel>
<BulletPanel Margin="10,2,0,10">
<CheckBox ID="checkBox2" Foreground="Blue">Longhorn Corner</CheckBox>
</BulletPanel>
<BulletPanel Margin="10,2,0,10">
<CheckBox ID="checkBox3" Foreground="Red">.NET Heaven</CheckBox>
</BulletPanel>
</StackPanel>
</Grid>
|
The output looks like Figure 1.
Figure 1. CheckBox example
Further Readings
You may also want to read these related articles.
Ask Your Question
Got a programming related question? You may want to post your question here