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
Is it possible to have different navigation tagets within ohne grouped listbox.
Depending on the ViewModels the user should be navigated to a different page.
Example:
If boolean is true navigate to a result page.
If boolean is false navigate to a page with user actions.
Does crosslight support this scenario?
Hello Fabian,
Yes, it is possible to navigate to different target (ViewModel) in the list. In the binding provider of the list, bind the table view to the DetailNavigationTargetProperty and specify the property that will be queried during navigation.
Finally, in the list ViewModel, you added a property that corresponds to the binding definition. You can then put the logic in the property's getter and return the desired NavigationTarget. This flexibility allows you to navigate to any kind of different page based on your condition, not just limited to two.
The example of the property definition would look like the following:
public NavigationTarget Target{ get { if (someCondition) return new NavigationTarget(typeof(ViewModelA)); else return new NavigationTarget(typeof(ViewModelB)); } }
Hope this helps.
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