This is a migrated thread and some comments may be shown as answers.

load view in pane (mvvm)

1 Answer 175 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Florin
Top achievements
Rank 2
Florin asked on 22 Feb 2017, 04:09 PM

Hi,

I want to load some view in content of pane. The pane is create dynamically to doubleclick on the item's panelbar.

My solution have 2 projects. One for view's and one for model views.

The code from doubleclick is:

private void MenuItemDoubleClick(object sender) {
    UserMenuTab selectedItem = (sender as UserMenuTab);
    string propValueTitlu = selectedItem.Titlu.ToString();
   if (propValueTitlu != null) {
     OuterDockPanes.Add(new RadPane {
       Header = propValueTitlu,
       Content = " ???? I want to put here the view ",
       Tag = "DocumentHost"        
  });
  }
 }

I dont know how cand I upload the solution for better undestanding... 

Thank you.

 

 

1 Answer, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 27 Feb 2017, 09:42 AM
Hello Florin,

In order to use MVVM with RadDocking you can use the PanesSource and the DockingPanesFactory properties of the control. Please take a look at our help article on how to achieve this: http://docs.telerik.com/devtools/wpf/controls/raddocking/features/panes/panesource

We also have great example demonstrating how to achieve a Visual Studio with MVVM in our developer focused examples: https://github.com/telerik/xaml-sdk/tree/master/Docking/VisualStudioDocking.

I hope this helps. However, if it does not, you can open a support ticket and attach a sample project demonstrating your approach so we can investigate and propose a solution if possible.

Regards,
Polya
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Florin
Top achievements
Rank 2
Answers by
Polya
Telerik team
Share this question
or