Hi Waqas,
If you must share the same view model instance for multiple pages (not recommended) then just set the DataForm source the view model property.
When you do this, you're creating a brand new instance of MainViewModel
Instead, set the
binding context of the details page to the shared instance of MaionViewModel
Then, if you bind the Source property to the VM's Selected property, it will use the value set in the previous page
I do recommend that if you want to use MVVM, have a DetailsViewModel that has its own SelectedUser property. That way you have separate view models for different pages (or create new instances of a similar view model).
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items