July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The WPF GroupBox control has the same purpose for same named controls in other technologies, offering a container with a header and a border for grouping nested controls. The following code shows how you can implement a GroupBox, assigning its headers and nesting controls:
<GroupBox Name="Group1" Margin="5"> <GroupBox.Header> <TextBlock Text="Set your options"/> </GroupBox.Header> <StackPanel Margin="10"> <CheckBox Name="Check3" Content="Set a single option"/> <RadioButton Name="Radio3" Content="Use this"/> <RadioButton Name="Radio4" Content="Use that"/> </StackPanel></GroupBox>
Figure 29.9 shows the output of this code.
FIGURE ...
Read now
Unlock full access