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
Sure. You can submit a feature requests on this page - http://devcenter.infragistics.com/Protected/RequestFeature.aspx
Thanks for the code.
Can I request this to be built in as a new feature though?
You can use the GetPanes method of the XamDockManager to enumerate the panes and build a list of the documents. Then iterate that list and close the panes.
e.g.