Tab Bar Controller Navigation Xamarin with MVVM Li

2019-05-07 11:35发布

问题:

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