ToolBarTray

image_pdfimage_print


   
    
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Top">
    <ToolBarTray>
      <ToolBar>
        <Button>
          <Canvas Width="16" Height="16" SnapsToDevicePixels="True">
            <Polygon Stroke="Black" StrokeThickness="0.5" Points="2.5,1.5 9.5,1.5 12.5,4.5 12.5,15 2.5,15">
              <Polygon.Fill>
                <LinearGradientBrush StartPoint="1,1" EndPoint="0.2,0.7">
                  <GradientStop Offset="0" Color="#AAA" />
                  <GradientStop Offset="1" Color="White" />
                </LinearGradientBrush>
              </Polygon.Fill>
            </Polygon>
            <Polygon Stroke="Black" Fill="DarkGray" StrokeThickness="0.5" StrokeLineJoin="Bevel" Points="9.5,1.5 9.5,4.5 12.5,4.5" />
          </Canvas>
        </Button>
      </ToolBar>
      <ToolBar>
        <Button>Second toolbar</Button>
        <CheckBox IsChecked="True">Choice</CheckBox>
      </ToolBar>
    </ToolBarTray>
</Page>