added SSCLI 1.0
[windows-sources.git] / sdk / samples / WPFSamples / AccessText / csharp / pane1.xaml
bloba30e05f1cba60678291811982e95edbf565a9f0a
1 <StackPanel
2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     x:Class="AccessTextSimple.Pane1"
7   <Grid ShowGridLines ="false" Background ="White" >
8     <Grid.ColumnDefinitions>
9       <ColumnDefinition Width="300"/>
10       <ColumnDefinition Width="250"/>
11     </Grid.ColumnDefinitions>
12     <Grid.RowDefinitions>
13       <RowDefinition/>
14       <RowDefinition/>
15       <RowDefinition/>
16       <RowDefinition/>
17       <RowDefinition/>
18       <RowDefinition/>
19       <RowDefinition/>
20       <RowDefinition/>
21       <RowDefinition/>
22       <RowDefinition/>
23       <RowDefinition/>
24       <RowDefinition/>
25       <RowDefinition/>
26     </Grid.RowDefinitions>
28     <TextBlock Margin="10,10,3,3" FontSize="24"
29                Grid.Column="0" Grid.Row="0" >
30       AccessText
31     </TextBlock>
33     <TextBlock Margin="10,10,3,3" FontSize="14" 
34                Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">
35       The following access text examples demonstrate:
36     </TextBlock>
38     <DockPanel Margin="30,10,3,3" Grid.Column="0" Grid.Row="2">
39       <Button Click="edit_Click">
40         <AccessText>_Edit</AccessText>
41       </Button>
42       <Button Click="cut_Click">_Cut</Button>
43     </DockPanel>
45     <TextBlock Margin="10,10,3,3" Grid.Column="1" Grid.Row="2" FontSize="12" 
46                VerticalAlignment="Center" TextWrapping="WrapWithOverflow">
47       Using two methods to create an access key. The access key in the l
48       eft button was created with an access text tag; the one on
49       the right with just the underline character.
50     </TextBlock>
52     <DockPanel Margin="30,10,3,3" Grid.Column="0" Grid.Row="3">
53       <Button Click="hello_Click">
54         <AccessText>__He_llo__</AccessText>
55       </Button>
56     </DockPanel>
58     <TextBlock Margin="10,10,3,3" Grid.Column="1" Grid.Row="3" FontSize="12" 
59          VerticalAlignment="Center" TextWrapping="WrapWithOverflow">
60       Using the access text escape. Use two underline characters
61       if you want an underline to appear in your text.
62     </TextBlock>
64     <DockPanel Margin="30,10,3,3" Grid.Column="0" Grid.Row="4">
65       <TextBox Name="textBox1" Width="50" Height="30"/>
66       <Label Width="200" HorizontalAlignment="Left"
67              Target="{Binding ElementName=textBox1}">
68         <AccessText TextWrapping="WrapWithOverflow">
69           _A long piece of text that requires text wrapping
70           goes here.
71         </AccessText>
72       </Label>
73     </DockPanel>
75     <TextBlock Margin="10,10,3,3" Grid.Column="1" Grid.Row="4" FontSize="12" 
76          VerticalAlignment="Center" TextWrapping="WrapWithOverflow">
77       Using the AccessText element to create a label
78       that has an access key and supports text wrapping.
79     </TextBlock>
81     <DockPanel Margin="30,10,3,3" Grid.Column="0" Grid.Row="5">
82       <TextBox Name="textBox2" Width="50" Height="30"/>
83       <Label Target="{Binding ElementName=textBox2}">
84         <AccessText Background="Red" Foreground="DarkSlateBlue"    
85                     FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 
86                     FontWeight="Bold">
87           E_dit
88         </AccessText>
89       </Label>
90     </DockPanel>
92     <TextBlock Margin="10,10,3,3" Grid.Column="1" Grid.Row="5" FontSize="12" 
93                VerticalAlignment="Center" TextWrapping="WrapWithOverflow">
94       Setting AccessText properties.
95     </TextBlock>
97     <TextBlock Margin="10,10,3,3" FontSize="14" 
98                Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="2">
99       NOTE: Press the ALT key to see the access keys in the examples.
100     </TextBlock>
101   </Grid>
102 </StackPanel>