ToolBar and Button, ToggleButton, ComboBox and Separator : ToolBar « Windows Presentation Foundation « C# / C Sharp






ToolBar and Button, ToggleButton, ComboBox and Separator

ToolBar and Button, ToggleButton, ComboBox and Separator
     
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  Title="About WPF" SizeToContent="WidthAndHeight"
  Background="OrangeRed">
  
<Canvas>
  <ToolBar>
    <Button>
      <Image Source="c:\image.gif"/>
    </Button>
    <Separator/>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <Separator/>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <ToggleButton>
      <Image Source="c:\image.gif"/>
    </ToggleButton>
    <Separator/>
    <Label>Zoom</Label>
    <ComboBox SelectedIndex="0">
      <ComboBoxItem>100%</ComboBoxItem>
      <ComboBoxItem>75%</ComboBoxItem>
      <ComboBoxItem>50%</ComboBoxItem>
      <ComboBoxItem>25%</ComboBoxItem>
    </ComboBox>
    <Separator/>
    <Button>
      <Image Source="c:\image.gif"/>
    </Button>
    <Button>
      <Image Source="c:\image.gif"/>
    </Button>
  </ToolBar>
</Canvas>
</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.Basic ToolbarBasic Toolbar
5.ToolBarTrayToolBarTray
6.ToolBar in a ToolBarTrayToolBar in a ToolBarTray
7.ToolBar button with Customized paintingToolBar button with Customized painting
8.ToolBarTray and ToolBarToolBarTray and ToolBar
9.Display a ToolbarDisplay a Toolbar