Can you provide an example with some theme styple applied to the main window and have dock manager like this:
Hello Joan,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you for your reply. I have been looking into it and if I understand correctly you wish to add ContentPanes into the TabGroupPane when you select a node of the XamDataTree and keep the current panes. If this is correct, you can use the same approach and comment the part of the Convert method of the Converter, which clears the items of the TabGroupPane:
//The bellow lines are removing the panes of the TabGroupPane
//int count = documents.Items.Count;
//for (int i = 0; i < count; i++)
//{
// documents.Items.RemoveAt(0);
//}
I have modified the sample application that I have created for you, in order to keep the current content of the TabGroupPane when the selection of the XamDataTree is changed.
Please let me know if you need any further assistance on the matter.
What I need is to load different views in the TabGroupPane, totally different usercontrols. and those usercontrols should be added to the tabgroup without deleting the previously added ones.
Thanks,
Joan
Thank you for your replies. I have been looking into the requirements that you are having and I have modified the sample application that I have created for you, in order to implement them. I have used our XamDataTree control in the navigation pane and added custom SelectedItem property in order to allow avoiding code behind. Also I have used a converter, in which I am creating the ContentPanes that are inside the DocumentHostControl, since the TabGroupPane, does not currently supports ItemsSource binding.
I tried to create a treeview in the left pane, and in the right pane brought up the view for each treeviewitem. What is the better way to do this without break the mvvm pattern?
Can you provide an example?