Tab Bar Controller Navigation Xamarin with MVVM Light

痞子三分冷 提交于 2019-12-07 04:24:45

问题


iOS standard MVVM Light storyboard pattern is

Nav -> View Controller -> Other Views

But i want to use a tab bar controller as root view, up to here no one problems, but when i want to navigate from that tab view, in a new viewcontroller i lost the tab bar, and the view is load like a standard view and not like a "tabbed" view.

I try to create the following schema

TabBarController -> Navigation -> View -> Second View

but the mvvm light pattern put the navigation controller in a SimpleIoc and i can't create more than once.

How i must set the storyboard ensure that i have navigation and tabbar in all the views?


回答1:


Up to now i resolve using the mvvmlight IoC for ViewModel and View, for navigation i use custom method in PageController's code behind and segue



来源:https://stackoverflow.com/questions/32169978/tab-bar-controller-navigation-xamarin-with-mvvm-light

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!