I have a XamDocManager with an embedded SplitPane which has an embedded TabGroupPane which has a collection of ContentPanes. I’d like some of the ContentPanes to start out docked, and others start out floating. Is there any way I can achieve this?
Thanks
Dan
Hello Dan,
Thank you for your post. I have been looking into it and I can suggest you set ContentPane and SplitPane’s igDock:XamDockManager.InitialLocation Property to the location which suits you best. Here you can see how to do so:
http://help.infragistics.com/Help/NetAdvantage/WPF/2012.2/CLR4.0/html/xamDockManager_Set_the_Initial_Location_of_a_Pane.html
and
http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/InfragisticsWPF4.DockManager.v12.1~Infragistics.Windows.DockManager.XamDockManager~InitialLocationProperty.html
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Stephan,
Thanks. I had some difficulties implemented what you suggested due to the TabGroupPane being part of a DocumentContentHost. After removing the DocumentContentHost and adding it to the XamDockManager.Panes, it worked. However, I lost my bindings when trying to bind using the RelativeSource of FindAncestor. I’m assuming that it is no longer part of the same visual tree when it’s not docked. Is there a way around this?
You are right that if the Pane is floating it is not aprt of teh Visual Tree and the RelativeSource doesn't work. In this case yo ucan use a Source for the Binding in order to bind to an object's property. In the Samples Browser there is a sample under xamDockManager / Organizaton / Display Document Content section, which shows how to do so.
Hope this helps you.