programming-examples/c-sharp/Others/Toolbar TraysToolbar Trays.cs

38 lines
1.1 KiB
C#
Raw Normal View History

2019-11-15 12:59:38 +01:00
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="320" Width="400"
>
<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>Cyan</Button>
<Button>Blue</Button>
<Button>Green</Button>
<Button>Yellow</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>