Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Docking TabGroupPane Dynamically
posted

Hi,

     I am using XamDockManager in a userControl which is loaded into Shell region in my Prism/CAL Application.I am attaching the code below for your reference

 

<UserControl x:Class="SREMonitor.Views.SREMonitorLayout"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    x:Name="MonitorLayout"

    xmlns:ig="http://infragistics.com/DockManager">

 

 

<DockPanel>

        <ig:XamDockManager Background="{x:Null}" x:Name="xamDockManager">

            <ig:XamDockManager.Panes>

                <ig:SplitPane MinWidth="300">

                    <ig:ContentPane Header="Sidebar Region" Style="{StaticResource JdaSidebarPaneStyle}" Background="#FF86BEEC">

                        <ItemsControl x:Name="sidebarRegion"/>

                    </ig:ContentPane>

                </ig:SplitPane>

                <ig:SplitPane Width="6000" MinWidth="300" SplitterOrientation="Vertical" x:Name="splitPane">

                    <ig:SplitPane SplitterOrientation="Horizontal">                       

                            <ig:TabGroupPane x:Name="MyRegion1"/>

                            <ig:TabGroupPane x:Name="MyRegion2"/>                        

                    </ig:SplitPane>

                </ig:SplitPane>

            </ig:XamDockManager.Panes>

        </ig:XamDockManager>

    </DockPanel>

</UserControl>

 

 

My problem here is i want to Hide/Dock the MyRegion2 Dynamically. how can i do this,Please suggest me some way..........Thanks in Advance

Parents
  • 54937
    Offline posted

    ramk_chirra said:
    My problem here is i want to Hide/Dock the MyRegion2 Dynamically.

    In xamDockManager, TabGroupPanes are never moved/docked; they are just a custom container for ContentPane instances that display those panes as tab items. So to hide a TabGroupPane, you would have to hide all of the ContentPanes within it. Also, since the end user may drag panes to other locations, unpin panes, float them, etc. the ContentPane instances that you initially put into the TabGroupPane may be moved elsewhere. Now if you want to manipulate a ContentPane's location, you may want to look at the ContentPaneCommands class which has a number of RoutedCommands that can be executed (e.g. using the ContentPane's ExecuteCommand method) that will affect where the pane is positioned.

Reply Children