Because there is no other way to get it. Prism uses dependency injection. That is the only way to get any of the Prism services in a Prism application.
Suppose we have PageA and PageB, now I want to navigate from PageA to PageB and when it navigates to PageB I want some initial data that takes arround 3 secs to load. But during that 3 secs I want to show an Activiy Indicator just to give some clue to the user that something is loading up. Now ,how do I do it without blocking the UI thread? Where to call that code? In the ctor? Any place you recommend?
you will have an activity indicator that is bound to a property in your VM maybe named IsBusy. You will set your IsBusy property to true, then you will load your data asynchronously as to not block the UI, and when the data has loaded set the IsBusy to false to hide the activity indicator.
Hello Brian, was wondering if it was possible to get a Tabbed Page menu to appear at the bottom (android). As of Xamarin.Forms 3.1 it is possible to use a SetToolBarPlacement() method. The only issue is that I can't access the TabbedPage since it is part of the Prism containerRegistry. So I'm not sure where I would place that. I tried placing it on the first tabbed page on the code behind but it's not working. Any pointers are greatly appreciated, thanks!
@Brian Lagunas - the absolute navigation "/MainPage" does not seem to work on iOS, my Xamarin.Forms app on iOS simulator just freezes up. Does this not work on iOS?
@@BrianLagunas its the same code as Android. Android works just fine, the iOS version freezes up when I click the button to go to /MainPage. From your tutorial regarding Passing Nav Params, i'm unable to get the Title 'Hello from Main Page' to render immediately on navigation to View A as well - works just fine on Android.
in wpf mainwindow navigation is working but if i open child window from mainwindow and doing same thing for navigation its not working and also not throwing error . how to use navigation in child window in wpf?
@@jorgeromero9759 if the method can't be found, then its not the same. The GoBackAsync method is a method on the INavigationService interface. If you're not seeing it, you're not using the right interface. What methods are on your interface?