PushAsync is not supported globally on Android, please use a NavigationPage - Xamarin.Forms

前端 未结 9 1467
情歌与酒
情歌与酒 2020-12-12 17:34

I have the following method in an Xamarin.Forms.ContentPage wired to a button click event

public class Lo         


        
9条回答
  •  执笔经年
    2020-12-12 18:35

    When you add (in "public partial class App"):

    public App()
    {
        InitializeComponent();
    
        MainPage = new NavigationPage(new MainPage());
    }
    

    You can use:

    await Navigation.PushAsync(new BleBleBle());

提交回复
热议问题