I have the following method in an Xamarin.Forms.ContentPage
wired to a button click event
public class Lo
Check that in the previous navigation you use NavigationPage:
Incorrect: Application.Current.MainPage = new LoginPage();
Correct: Application.Current.MainPage = new NavigationPage(new LoginPage());
When you add (in "public partial class App"):
public App()
{
InitializeComponent();
MainPage = new NavigationPage(new MainPage());
}
You can use:
await Navigation.PushAsync(new BleBleBle());
First make setting in "Main App Page" then do in "Content page" to go other page: