Basic Toolbar : ToolBar « Windows Presentation Foundation « C# / C Sharp






Basic Toolbar

Basic Toolbar
    

<Window x:Class="MenusAndToolbars.BasicToolbar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="BasicToolbar" Height="300" Width="400">
    <Grid>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto"></RowDefinition>
      </Grid.RowDefinitions>
      <ToolBar>
        <Separator></Separator>
        <Button>Open</Button>
        <Button>Save</Button>
        <Button>Close</Button>
        <Separator></Separator>
        <CheckBox FontWeight="Bold">Bold</CheckBox>
        <CheckBox FontStyle="Italic">Italic</CheckBox>
        <CheckBox>
          <TextBlock TextDecorations="Underline">Underline</TextBlock>
        </CheckBox>
        <Separator></Separator>        
        <ComboBox SelectedIndex="0">
          <ComboBoxItem>100%</ComboBoxItem>
          <ComboBoxItem>50%</ComboBoxItem>
          <ComboBoxItem>25%</ComboBoxItem>
        </ComboBox>
      </ToolBar>
    </Grid>
  
</Window>

   
    
    
    
  








Related examples in the same category

1.ToolBar.ButtonStyleKeyToolBar.ButtonStyleKey
2.Compare the appearances of these controls with the ones in the ToolBar.Compare the appearances of these controls with the ones in the ToolBar.
3.Toolbar TraysToolbar Trays
4.ToolBarTrayToolBarTray
5.ToolBar in a ToolBarTrayToolBar in a ToolBarTray
6.ToolBar button with Customized paintingToolBar button with Customized painting
7.ToolBarTray and ToolBarToolBarTray and ToolBar
8.Display a ToolbarDisplay a Toolbar
9.ToolBar and Button, ToggleButton, ComboBox and SeparatorToolBar and Button, ToggleButton, ComboBox and Separator