ToolBarTray and ToolBar : ToolBar « Windows Presentation Foundation « C# / CSharp Tutorial






<Window x:Class="SimpleStyles.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="SimpleStyles"
  Background="#F8F8F8">
  <ScrollViewer>
    <WrapPanel>
      <HeaderedItemsControl Header="ToolBar">
        <StackPanel>
          <ToolBarTray>
            <ToolBar Grid.Row="1">
              <Button>Button</Button>
              <CheckBox>CheckBox</CheckBox>
              <TextBox>TextBox</TextBox>
            </ToolBar>
          </ToolBarTray>
        </StackPanel>
      </HeaderedItemsControl>
   
    </WrapPanel>
  </ScrollViewer>
</Window>
WPF Tool Bar Tray And Tool Bar








24.49.ToolBar
24.49.1.ToolBar.ButtonStyleKeyToolBar.ButtonStyleKey
24.49.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.
24.49.3.Toolbar TraysToolbar Trays
24.49.4.Basic ToolbarBasic Toolbar
24.49.5.ToolBarTrayToolBarTray
24.49.6.ToolBar in a ToolBarTrayToolBar in a ToolBarTray
24.49.7.ToolBar button with Customized paintingToolBar button with Customized painting
24.49.8.ToolBarTray and ToolBarToolBarTray and ToolBar
24.49.9.Display a ToolbarDisplay a Toolbar
24.49.10.ToolBar and Button, ToggleButton, ComboBox and SeparatorToolBar and Button, ToggleButton, ComboBox and Separator
24.49.11.Create ToolBar and set header value