Pages

Tuesday, 12 March 2013

GroupBox Control in WPF

GroupBox Control in WPF

The GroupBox element in XAML represents a GroupBox control.

XAML Code for GroupBox Control

<Window x:Class="WpfApplication5.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
        <GroupBox Header="GroupBox" Margin="13,28,34,43" Name="groupBox1">
            <CheckBox Height="21" Name="checkBox1">CheckBox</CheckBox>
        </GroupBox>
        <CheckBox Height="16" Margin="19,82,139,0" Name="checkBox2" VerticalAlignment="Top">CheckBox</CheckBox>
        <Button Height="23" Margin="125,96,79,0" Name="button1" VerticalAlignment="Top">Button</Button>
    </Grid>
</Window>

No comments:

Post a Comment