Prism-V4 WPF UnDock - Tab

Topics: Prism v4 - WPF 4
Jan 7, 2011 at 6:57 AM

Hi All,

I have a region specified in TabControl to load multiple view in tabbed style, I have a use case to undock a tab from the region to floating and dock it back to the region. How can I achieve this? Is there any other way to do the same?

 Here is the code snippet

<TabControl regions:RegionManager.RegionName="MainTabRegion" DockPanel.Dock="Top">
                    <WrapPanel DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:Shell}}, Path=DataContext}">
                        <TextBlock VerticalAlignment="Center">A Tab</TextBlock>
                        <Button Margin="3,2,2,2"  VerticalAlignment="Center" Command="{Binding CloseCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ContentControl}}, Path=DataContext}">X</Button>

Jan 7, 2011 at 2:41 PM

Avalon Dock --  is a free open source docking manager.

I have seen a few regionadapters floating around you would have to do a search.