1 <Window x:Class="SDKSample.Window1"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
7 <Grid.ColumnDefinitions>
8 <ColumnDefinition Width="200"/>
9 <ColumnDefinition Width="150"/>
10 </Grid.ColumnDefinitions>
13 </Grid.RowDefinitions>
15 <StackPanel Grid.Column="0" Grid.Row="0">
16 <Expander Name="myExpander" Background="Tan"
17 HorizontalAlignment="Left" Header="My Expander"
18 ExpandDirection="Down" IsExpanded="True" Width="100">
19 <TextBlock TextWrapping="Wrap">
20 Lorem ipsum dolor sit amet, consectetur
21 adipisicing elit, sed do eiusmod tempor incididunt ut
22 labore et dolore magna aliqua
27 <StackPanel Grid.Column="1" Grid.Row="0">
28 <TextBlock Margin="0, 10, 3, 3" FontSize="12" TextWrapping="Wrap">
29 Click to change the ExpandDirection property on My Expander
32 <RadioButton Name="ExpandDown" Margin="0,10,0,10"
34 Checked="ChangeExpandDirection"
35 GroupName="ExpandDirectionProperty">
38 <RadioButton Name="ExpandUp" Margin="0,0,0,10"
39 Checked="ChangeExpandDirection"
40 GroupName="ExpandDirectionProperty">
43 <RadioButton Name="ExpandLeft" Margin="0,0,0,10"
44 Checked="ChangeExpandDirection"
45 GroupName="ExpandDirectionProperty">
48 <RadioButton Name="ExpandRight" Margin="0,0,0,10"
49 Checked="ChangeExpandDirection"
50 GroupName="ExpandDirectionProperty">