当我点击按钮Knop1
时,我想导航到页面ContentPage1
,但我收到了中断模式错误
以下是我正在使用的代码:
namespace XamarinToets
{
public partial class MainPage : MasterDetailPage
{
public MainPage()
{
InitializeComponent();
}
async void Knop1Klik (object sender, EventArgs e)
{
await Navigation.PushAsync(new ContentPage1());
}
async void Knop2Klik(object sender, EventArgs e)
{
//await Navigation.PushAsync(new ContentPage1());
}
}
}