【发布时间】:2020-03-12 10:23:01
【问题描述】:
我想导航到 Xamarin Forms 中的其他页面,但它不起作用。 我的代码是:
private async void btnlogin_Clicked(object sender, EventArgs e)
{ await Navigation.PushAsync(new CreateExpense());}
错误是:
无法从“页面”转换为“Xamarin.Forms.Page”。顺便说一句 “页面”在 contentView 中。
【问题讨论】:
-
无法导航ContentView,页面必须是Content Page
标签: c# xaml xamarin xamarin.forms navigation