Can you provide an example with some theme styple applied to the main window and have dock manager like this:
Hello Joan,
Thank you for your email. I have been looking into your question and you can use the Theme property of the XamDockManager in order to change the appearance of the control. You can read more detailed information regarding this here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=Themes_Theming_QuickStart.html, http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=InfragisticsWPF4.DockManager.v12.2~Infragistics.Windows.DockManager.XamDockManager~Theme.html. Also you can set the Theme property of the XamDockManager to “[current]” and set the theme by using the ThemeManager’s CurrentTheme property. You can use this approach if you wish to set the theme multiple controls at the same time. You can set the Theme properties of the controls to current and set the ThemeManager.CurrentTheme, to change the theme of all controls. I have created a sample application for you that shows how you can implement this approach.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Can you modify the example so that I have a items list control in the navigation pane, like 2-level-tree, Foler1 has file1 and file2, Folder2 has file3 and file4. so if I click file1, the tab shows file, if i click folder1, both file1 tab and file2tab is shown(file1 is active tab). same for folder2. which is the best way to handle this. I am using mvvm.
Thanks,
Joan
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?
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.
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.
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.
I am just checking if you require any further assistance on the matter.