added samples
[windows-sources.git] / sdk / samples / WPFSamples / ExpanderExample / visualbasic / window1.xaml
blob69648cb8f5d55197c9197e94af06b5f051006209
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"
5   <Grid>
6           
7         <Grid.ColumnDefinitions>
8           <ColumnDefinition Width="200"/>
9           <ColumnDefinition Width="150"/>
10         </Grid.ColumnDefinitions>
11         <Grid.RowDefinitions>
12           <RowDefinition/>
13         </Grid.RowDefinitions>
14           
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
23         </TextBlock>
24       </Expander>
25         </StackPanel>
26           
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
30           </TextBlock>
31                 <StackPanel>
32                         <RadioButton Name="ExpandDown" Margin="0,10,0,10" 
33                                                 IsChecked="True"
34                                                 Checked="ChangeExpandDirection"
35                                                 GroupName="ExpandDirectionProperty">
36                         Expand Down
37                         </RadioButton>
38                         <RadioButton Name="ExpandUp" Margin="0,0,0,10"
39                                                 Checked="ChangeExpandDirection"
40                                                 GroupName="ExpandDirectionProperty">
41                         Expand Up
42                         </RadioButton>
43                         <RadioButton Name="ExpandLeft" Margin="0,0,0,10"
44                                                 Checked="ChangeExpandDirection"
45                                                 GroupName="ExpandDirectionProperty">
46                         Expand Left
47                         </RadioButton>
48                         <RadioButton Name="ExpandRight" Margin="0,0,0,10"
49                                                 Checked="ChangeExpandDirection"
50                                                 GroupName="ExpandDirectionProperty">
51                         Expand Right
52                         </RadioButton>
53                 </StackPanel>
54         </StackPanel>
55           
56   </Grid>
57         
58 </Window>