I want to navigate to other page in Xamarin Forms but it is not working in Content View. I am using
await Navigation.PushAsync(new Page2());
This code is not giving any error and run successfully but there is no effect on page. I am using this code in content page also and it works properly there but it is not working in case of ContentView. Currently I am using
await ParentView.Navigation.PushAsync(new Page2());
and it is working fine in ContentView. But I am getting warning that "ParentView is obsolete as of version 2.1.0. Please use Parent instead.". But there is no function like
await Parent.Navigation.PushAsync(new Page2());
and it is giving syntax error. So, is there any other way to navigate to other page using ContentView.
App.Current.MainPage- cvanbeek