Toolbar Trays : ToolBar « Windows Presentation Foundation « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » Windows Presentation Foundation » ToolBar 
24.49.3.Toolbar Trays
<Window x:Class="MenusAndToolbars.ToolbarTrays"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ToolbarTrays" Height="300" Width="300"
    >
  <DockPanel>
    <ToolBarTray DockPanel.Dock="Top" >
      <ToolBar>
        <Button ToolBar.OverflowMode="Never">One</Button>
        <Button>Two</Button>
        <Button>Three</Button>
      </ToolBar>
      <ToolBar>
        <Button ToolBar.OverflowMode="Never">A</Button>
        <Button ToolBar.OverflowMode="Never">B</Button>
        <Button>C</Button>
      </ToolBar>      
      <ToolBar Band="1">
        <Button>Red</Button>
        <Button>Blue</Button>        
        <Button>Green</Button>
        <Button>Black</Button>
      </ToolBar>
    </ToolBarTray>    
    <!--<ToolBarTray DockPanel.Dock="Left" Orientation="Vertical">
      <ToolBar>
        <Button>One</Button>
        <Button>One</Button>
        <Button>One</Button>
      </ToolBar>
    </ToolBarTray>-->
    <TextBox></TextBox>
  </DockPanel>
</Window>
WPF Toolbar Trays
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
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.