Hello,
I was trying to use the infragistic XamDockManager, but I faced some issues.
Main Window:
In the first screen I have a dock manager with document content host, which hast a splitpane inside it.
And a TabGroupPane inside the splitpane.
Next to the document content host I have a XamDockManager.Panes with only one pane.
The Panes in my case the property pane is working just fine, can be dragged to all sides.
What I have issues with is the document content host.I am populating the TabGroupPane from code behind with the ItemSource property.I am using a ObservableCollection<ContentPane> to populate it with panes.
Creating the pane with this code:
private void DataBind() { var frame = new Frame(); frame.Navigate(new Page1(this)); var mainPane = new ContentPane { CloseButtonVisibility = Visibility.Hidden, WindowPositionMenuVisibility = Visibility.Hidden, Header = "Main pane", Content = frame }; ContentPanes.Add(mainPane); TbGrpPnContentPanes.ItemsSource = ContentPanes; }
And as you can see I set the CloseButtonVisibility & WindowPositionMenuVisibility to Hidden.I do that because I don't want the main pane to be close or dragged or changed at all.But still I get those two button, where the X is closing it.
Sub Panes:
When clicking the [Add new pane] button it adds new panes to the tabgrouppane, but they are somehow disabled. I can't click on them and in the dropdown menu they are also disabled.
Now the questions are:
1: Is it possible to disable the possibility of closing one of the panes and let the rest of them be closable ?
2: How can I enable the sub panes ?
Bonus question: How can I place the pane headers in the bottom and not on top ?
I have attached a sample solution in case you want to reproduce the problem:
Hi again,
I solved the problem in question 2.
Solution:
Don't use ItemSource, but instead use:TabGroupPane.Items.Add(new ContentPane())