Xamarin.iOS, MVVMCross. Can I Access NavigationItem from TabBarController’s root ViewController?

Published

I use Xamarin.iOS and MVVMCross. My app’s architecture is the following:

              +-----------------------+
              | RootViewModel         |
              | RootViewController    |
              | [MvxRootPresentation] |
              |                       |
              +--------+----+---------+
                       |    |
           +-----------+    +------------+
           |                             |
+----------+----------+      +-----------+---------+
|Tab1ViewModel        |      |Tab2ViewModel        |
|Tab1ViewController   |      |Tab2ViewController   |
|[MvxTabPresentation] |      |[MvxTabPresentation] |
|                     |      |                     |
+---------------------+      +---------------------+

The problem is, that the Navigation Bars are set up in the Tab ViewControllers. I have to display some information on the NavigationItem.Title, which is stored in the RootViewModel. Can I have one, common Navigation Bar, which is initialize in the RootViewController?
Or if it’s not possible, can I access RootViewModel from a TabViewController?

Source: Xamarin.ios Questions

Published
Categorised as Uncategorised Tagged , , , ,

Answers

Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq