How do I pick a different ToolBar for different screens?

nmdiasnmdias USMember ✭✭
edited May 2017 in Xamarin.Forms

I have defined a ToolBar.axml under my .Droid project, and when the OnCreate method of the MainActivity fires, I set that ToolBar:

FormsAppCompatActivity.ToolbarResource = Resource.Layout.ToolBar;

This all works fine.

However, in my Shared Project, when I Push a Modal view with a Navigation Page, like this:

await _navigation.PushModalAsync(new NavigationPage(new MessageComposerPage()));

I would like to use a different ToolBar. How can I do this?

Sign In or Register to comment.