added samples
[windows-sources.git] / sdk / samples / WPFSamples / StatusBar / csharp / window1.xaml
blobf3c5b2c2ecd847a4a057f045bafdd8f9e880bd4d
1 <Window
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     x:Class="StatusBarSimple.Window1"
5     Title ="StatusBar"
6     >
7   <Window.Resources>
8     <Style x:Key="StatusBarSeparatorStyle" TargetType="Separator">
9       <Setter Property="Background" Value="LightBlue" />
10       <Setter Property="Control.Width" Value="1"/>
11       <Setter Property="Control.Height" Value="20"/>
12     </Style>
13     
14   </Window.Resources>
16 <Grid>
17   <Grid.ColumnDefinitions>
18     <ColumnDefinition/>
19     <ColumnDefinition/>
20   </Grid.ColumnDefinitions>
21   <Grid.RowDefinitions>
22     <RowDefinition/>
23     <RowDefinition/>
24     <RowDefinition/>
25   </Grid.RowDefinitions>
26   <StackPanel Grid.Column="0" Grid.Row="0">
27     <TextBlock FontSize="12" TextWrapping="WrapWithOverflow">
28       This sample provides examples of items that can be placed in a
29       StatusBar. To see an example, select the application type and
30       look for the content in the StatusBar at the bottom of this
31       window.
32     </TextBlock>    
33     <ListBox HorizontalAlignment="Left" VerticalAlignment="Top" 
34           Width="150" Margin="0,10,0,0" Foreground="Blue">
35         <ListBoxItem Content="Download Application" Selected="MakeProgressBar"/>
36         <Separator/>
37         <ListBoxItem Content="Compilation Application" Selected="MakeTextBlock"/>
38         <Separator/>
39         <ListBoxItem Content="Printing Application" Selected="MakeImage"/>
40         <Separator/>
41         <ListBoxItem Content="Help Application" Selected="MakeHelp"/>
42         <Separator/>
43         <ListBoxItem Content="Icon Group" Selected="MakeGroup"/>
44     </ListBox>
45   </StackPanel>
47         <StatusBar Name="sbar" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" 
48                    VerticalAlignment="Bottom" Background="Beige" > 
49              <StatusBarItem>
50                <TextBlock>Ready</TextBlock>
51              </StatusBarItem>
52              <StatusBarItem>
53                <Separator Style="{StaticResource StatusBarSeparatorStyle}"/>
54              </StatusBarItem>
55         </StatusBar>
57 </Grid>
58 </Window>