ToolBarTrayExpander class

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

Description

Defines expandable sidebar zones of the main window and in expandable panes (e.g. navigator draft view).

Namespace

xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"

Members

NameThe expander element name, that is used as the connection with the related ShellGridSplitter.
DockPanel.Dockname of the docked zone - not used in draft view expanders
ExpandDirectionexpanding direction
IsExpandedDefault status of this expander. False means not expanded by default. Change this to have different default. Note: if you set it to True, and it was False, have in mind that the default navigator width may not be enough, thus increase it.

ShellToolbarTray

MarginMargins
Grid.RowIn which row of the <Grid.RowDefinitions it starts.
Grid.RowSpanOver how many rows of the <Grid.RowDefinitions it extends.
Grid.ColumnIn which column of the <Grid.ColumnDefinitions it starts.

Grid part of the draft view / audit info pane

The <Grid> part of the draft view / audit info pane defines the actual displacement of these two elements. Firstly it defines two rows, whereas the first one is 3-times larger (3*) than the second one. The <l:InfoListBox goes in the first row (no specified row, it means the row 0), pointing to the ArticleResultView, followed by the <l:ShellGridSplitter in the row 0, 5 units high, followed by the <l:AuditListBox in row 1, also pointing to the ArticleResultView.

<Grid>

                 <Grid.RowDefinitions>

           <RowDefinition Height="3*"/>

     <RowDefinition Height="*"/>

   </Grid.RowDefinitions>

   <l:InfoListBox 

                 HorizontalAlignment="Stretch" 

                 Margin="0,0,0,6"

     SearchCriteriaSource="{Binding Path=(l:ShellData.ShellData).SearchCriteria[ArticleResultView], RelativeSource={RelativeSource Self}}"/>

   <l:ShellGridSplitter 

                 Grid.Row="0" 

                 Name="RightPanelSplitter" 

                 VerticalAlignment="Bottom" 

                 Height="5" 

                 HorizontalAlignment="Stretch"/>

   <l:AuditListBox

           Margin="0" 

                 HorizontalAlignment="Stretch" 

                 Grid.Row="1"

     SearchCriteriaSource="{Binding Path=(l:ShellData.ShellData).SearchCriteria[ArticleResultView], RelativeSource={RelativeSource Self}}"/>

  </Grid>

Examples

hmtoggle_plus1Example of the statement for the sidebar sections
hmtoggle_plus1Example of the statement for the navigator draft view
hmtoggle_plus1All statements in configuration

More

On Main tab

The <l:ToolBarTrayExpander section, named ExpDockTop, ExpDockBottom, ExpDockLeft and ExpDockRight appears within DockPanel section and defines four sidebar zones. In some places, the names are TopToolBarTray, RightToolBarTray, Left, Bottom, LeftToolBarTray, BottomToolBarTray.

The similar section also appears in expandable panes (e.g. navigator draft view).

Normally, there's nothing to reconfigure here.

For examples and more details, see <l:ToolBarTrayExpander

On Navigators

The <l:ToolBarTrayExpander section that appears in the xxx_TabItems.xml file after <l:ShellGridSplitter within a navigator definition in navigators that have the expandable draft view shared with the Audit zone, such as Articles navigator. It contains the draft view and audit zone, as show on the right part of the following screenshot:

articlenavigatordraft_zoom70

For details, see <l:ToolBarTrayExpander.

The <l:ToolBarTrayExpander section contains a <Grid on its own to place the draft view pane and the audit pane.

<l:ToolBarTrayExpander 

 IsExpanded="False" 

 Margin="6,0,0,0" 

 Name="RightPanel" 

 ExpandDirection="Left" 

 l:ShellMode.Allowed="Browse" 

 Grid.Row="0" 

 Grid.RowSpan="5" 

 Grid.Column="1" >

 <Grid>

                 <Grid.RowDefinitions>

           <RowDefinition Height="3*"/>

     <RowDefinition Height="*"/>

   </Grid.RowDefinitions>

   <l:InfoListBox 

                 HorizontalAlignment="Stretch" 

                 Margin="0,0,0,6"

     SearchCriteriaSource="{Binding Path=(l:ShellData.ShellData).SearchCriteria[ArticleResultView], RelativeSource={RelativeSource Self}}"/>

   <l:ShellGridSplitter 

                 Grid.Row="0" 

                 Name="RightPanelSplitter" 

                 VerticalAlignment="Bottom" 

                 Height="5" 

                 HorizontalAlignment="Stretch"/>

   <l:AuditListBox

           Margin="0" 

                 HorizontalAlignment="Stretch" 

                 Grid.Row="1"

     SearchCriteriaSource="{Binding Path=(l:ShellData.ShellData).SearchCriteria[ArticleResultView], RelativeSource={RelativeSource Self}}"/>

  </Grid>

</l:ToolBarTrayExpander>