2

In my Xamarin Forms project, I have launcher activity i.e. MainActivity. I am starting Shared Application App.xaml.cs from MainActivity using following line in onCreate method.

LoadApplication(new App());

I am using CustomTabbedPage, each TabbedPage has its own xaml and xaml.cs files. In one of the xaml.cs files. I need to navigate to native activity that is placed under Droid module.

await Navigation.PushModalAsync(new HomeView());

Everything works fine if I navigate from one xaml view to other but I am unable to navigate to native screens from any xaml.cs file.

4

1 回答 1

2

Xamarin Forms doesn't support navigation to a Native Android View. But you can create a empty PCL page and use NativeView in page's custom renderer.

于 2017-05-05T00:45:02.773 回答