iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I hope somebody has seen this error and has an idea or where the issue might be.
I am trying to use the NavigationService.Navigate from isde a view model and it crashes with this error message:
The RootViewModel is a MultiPageViewModel.
Any hint is greatly appreciated.
Hi Andrew,
Thanks for the question. The error is because, exactly, that you are using a MultiPageViewModel. If you would kindly take a look at the MVVMSamples shipped with Crosslight, may I redirect your attention to the EventPublisherViewModel which contains the following code.
private void ExecuteSendMessage(object parameter) { ((IMultiPageViewModel)this.ParentViewModel).SelectedIndex = 1; EventAggregator.Default.Publish<DelegateEvent<string>, string>(this.Message); }
Instead of invoking the navigation service here, you need to set the SelectedIndex to move from one tab to another. Feel free to ask if you have any further questions. Thanks.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname