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
Hello,
Could anyone tell me how one can dynamically change the center view model in a drawer? Something like this:
this.CenterViewModel = new SomeViewModel();
as this is usually put in the drawer constructor. But how one could change it later to another view model? (implementing the same behavior as when the user taps a navigation item in the drawer left side navigation menu)
Thank you.
Flaviu
Initially (after a user login) I have a grid of buttons on the center view model. When the user taps on one of the buttons I want to change the center view model with another view model. This currently happens only through the drawer menu: when the user taps on one of the menu items the center view model is set on the desired view model.
Hello,Thank you for the reply.Based on you post, first we tried to create a sample with Intersoft “NavigationDrawer” project template.We modify the content in SimpleViewModel with two buttons. Those buttons will navigation to the specific fragment.Please kindly have review on the attached sample to see the result. You could run the attached sample on iOS & Android platform.You could get sample from this link: http://1drv.ms/WQVEhGYou could modify the layout / view as you want to be.Hope this helps.Regards,Hans K.
The proposed solution does not implement the desired behavior described. The proposed solution just pushes a view model on top of another (implements stack navigation). But what I need is, when tapping a button, to REPLACE the center view model of the drawer (this behavior is currently implemented only throgh the left side menu). When tapping a left side menu item, the center view model of the drawer is REPLACED, not another view model stacked upon it as your proposed solution does.
Could you suggest me any idea of how I could achieve this? Thank you.
On the current version of Crosslight (Crosslight 2 Update 3), the scenario is not supported because it is not intended.
I will have this forwarded to Crosslight Development team as feature request. The team will look the feasibility to implement this on the future release of Crosslight.
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