I worked through RadDocking documentation and also a lot of your (SDK) examples but I still did not find out how to set the DataTemplate of a RadPane.
In my project I use the same approach as in your SDK example "VisualStudioDocking_WPF" so RadDocking.PanesSourceis bound to an ObservableCollection<PaneViewModel>. With that I can dynamically add RadPanes on my RadDocking.DocumentHost in an MVVM friendly way. That's nice but sadly the example ends here - each RadPane is an empty Control just showing the TypeName of the ViewModel.
In my CustomDockingPanesFactory.CreatePaneForItem I set the following properties:
What I need is an example of how to set the DataTemplates for my RadPanes. Is there a clean way to set the DataTemplates and the DataTemplateSelector on XAML?
In my project I use the same approach as in your SDK example "VisualStudioDocking_WPF" so RadDocking.PanesSourceis bound to an ObservableCollection<PaneViewModel>. With that I can dynamically add RadPanes on my RadDocking.DocumentHost in an MVVM friendly way. That's nice but sadly the example ends here - each RadPane is an empty Control just showing the TypeName of the ViewModel.
In my CustomDockingPanesFactory.CreatePaneForItem I set the following properties:
pane.DataContext = paneViewModel;
pane.Header = paneViewModel.UserControlViewModel.Header;
pane.Content = paneViewModel.UserControlViewModel;
What I need is an example of how to set the DataTemplates for my RadPanes. Is there a clean way to set the DataTemplates and the DataTemplateSelector on XAML?