Description
The DockPanel section of a main tab definition (ShellTabItem...) typically encloses all the layout sub-sections.
DockPanel is a standard System.Windows.Controls member. Defines an area where you can arrange child elements either horizontally or vertically, relative to each other. It is described here: http://msdn.microsoft.com/en-us/library/system.windows.controls.dockpanel.aspx.
There are nine such sections in various main tabs in the Ted4_TabItems.xml and Fred4_TabItems.xml files and all have the same name: "MainContainer".
Members
Name | Identifier. |
Margin | Margins. |
ToolBarTrayExpander | Defines expandable sidebar zones of the main window and in expandable panes (e.g. navigator draft view). |
Grid | Contains UI elements displaced by means of Grid.Column and Grid.Row attributes in the definition of the specific UI elements. |
Example
<DockPanel Name="MainContainer" Margin="-2">
<l:ToolBarTrayExpander Name="ExpDockTop" DockPanel.Dock="Top" ExpandDirection="Down" IsExpanded="True">
<l:ShellToolBarTray l:ShellUI.ToolBarTrayName="Top" Orientation="Horizontal" Height="Auto"/>
</l:ToolBarTrayExpander>
<l:ToolBarTrayExpander Name="ExpDockBottom" DockPanel.Dock="Bottom" ExpandDirection="Up" IsExpanded="True">
<l:ShellToolBarTray l:ShellUI.ToolBarTrayName="Bottom" Orientation="Horizontal" Height="Auto"/>
</l:ToolBarTrayExpander>
<l:ToolBarTrayExpander Name="ExpDockRight" DockPanel.Dock="Right" ExpandDirection="Left" IsExpanded="False" HorizontalAlignment="Right" VerticalAlignment="Stretch">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<l:ShellToolBarTray l:ShellUI.ToolBarTrayName="Right" Orientation="Vertical" Width="Auto"/>
</ScrollViewer>
</l:ToolBarTrayExpander>
<l:ToolBarTrayExpander Name="ExpDockLeft" DockPanel.Dock="Left" ExpandDirection="Right" IsExpanded="True" HorizontalAlignment="Right" VerticalAlignment="Stretch">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<l:ShellToolBarTray l:ShellUI.ToolBarTrayName="Left" Orientation="Vertical" Width="Auto"/>
</ScrollViewer>
</l:ToolBarTrayExpander>