AccessText for TextBlock : AccessText « Windows Presentation Foundation « C# / C Sharp






AccessText for TextBlock

AccessText for TextBlock
    

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">
<TabControl>
  <TabItem Header="_Button">
    <Button>Click!</Button>
  </TabItem>
  <TabItem>
    <TabItem.Header>
      <TextBlock FontSize="18">
        <AccessText>_Text</AccessText>
      </TextBlock>
    </TabItem.Header>
    <TextBlock>Hello, world</TextBlock>
  </TabItem>
  <TabItem>
    <TabItem.Header>
      <Ellipse Fill="Blue" Width="30" Height="20" />
    </TabItem.Header>
    <StackPanel Orientation="Horizontal">
      <TextBlock>Ellipse:</TextBlock>
      <Ellipse Fill="Blue" Width="100" />
    </StackPanel>
  </TabItem>
</TabControl>
</Page>

   
    
    
    
  








Related examples in the same category

1.Using the AccessText element to create a label that has an access key and supports text wrapping.Using the AccessText element to create a label that has an access key and supports text wrapping.
2.Setting AccessText properties.Setting AccessText properties.
3.AccessText element adds access keys to controls.(how to specify the access key)AccessText element adds access keys to controls.(how to specify the access key)
4.Using the access text escape. Use two underline characters if you want an underline to appear in your text.Using the access text escape. Use two underline characters if you want an underline to appear in your text.