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
1130
Close all panes
posted

HI, I have the following XamDockManager:

        <igDm:XamDockManager x:Name="MainDockManager" Background="{DynamicResource ApplicationBackground}">
            <igDm:DocumentContentHost>
                <igDm:SplitPane>
                    <igDm:TabGroupPane x:Name="ContentsPane" />
                </igDm:SplitPane>
            </igDm:DocumentContentHost>
        </igDm:XamDockManager>

 

The TabGroupPane is supposed to be like VS2008's main content area which hosts the designers etc.  I add to the collection using the following code:

               // content == a UserControl subclass

               pane = new ContentPane();
               pane.Content = content;
               pane.CloseAction = PaneCloseAction.RemovePane;
               ContentsPane.Items.Add( pane );
               pane.Activate();

I'm trying to implement the Close All Windows command, like in VS2008, without closing any other panes I might have.  Any ideas?

Thanks

Andy