DockPanel section Main tab

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:29

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

NameIdentifier.
MarginMargins.
ToolBarTrayExpanderDefines expandable sidebar zones of the main window and in expandable panes (e.g. navigator draft view).
GridContains 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>