TabbedMDILayoutKind=Preview for auto hide tabs?

Docking/MDI for WPF Forum

Posted 1 month ago by Andrew Levine
Version: 19.1.0684
Avatar

Hello, I would like to display one of my auto hide bottom tool windows' tab on the far right side of the screen, separately from the other two tabs I have in there, which should stay on the far left similar to the way they are now. I tried setting TabbedMdiLayoutKind on the tool window, but it seems to have no effect. What would you recommend?

Comments (2)

Answer - Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Andrew,

The TabbedMdiLayoutKind enum is only for tabbed MDI and doesn't affect anything else.  The AutoHideTabStrip primitive control currently uses an ItemsPanel like this for its layout:

<Setter Property="ItemsPanel">
	<Setter.Value>
		<ItemsPanelTemplate>
			<StackPanel Orientation="Horizontal" />
		</ItemsPanelTemplate>
	</Setter.Value>
</Setter>

If you wanted anything different, then you could possibly make a new Style in your App.Resources that targets AutoHideTabStrip and use a different custom Panel in place of the StackPanel.


Actipro Software Support

Posted 29 days ago by Andrew Levine
Avatar

Here's what I ended up with, in case it helps anyone:

            <docking:DockSite.Resources>
                <Style TargetType="{x:Type docking:AutoHideTabGroup}">
                    <Setter Property="ItemsPanel">
                        <Setter.Value>
                            <ItemsPanelTemplate>
                                <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" Margin="0,0,-12,0" />
                            </ItemsPanelTemplate>
                        </Setter.Value>
                    </Setter>
                    <Setter Property="HorizontalAlignment" Value="Stretch"/>
                </Style>
                <Style TargetType="{x:Type docking:AutoHideTabItem}">
                    <Setter Property="DockPanel.Dock" Value="Left"/>
                    <Setter Property="HorizontalAlignment" Value="Right"/>
                </Style>
                <Style TargetType="{x:Type docking:AutoHideTabStrip}">
                    <Setter Property="ItemsPanel">
                        <Setter.Value>
                            <ItemsPanelTemplate>
                                <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" />
                            </ItemsPanelTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </docking:DockSite.Resources>

[Modified 29 days ago]

The latest build of this product (v21.1.0) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.