我的目标是在成功登录后将主图像设置为我的母版页。 这是我的代码 -
MasterDetailPage masterDetailPage = new MasterDetailPage
{
Master = new partialMasterPageJobseeker(),
Detail = new NavigationPage(new Jobsearch()),
};
Application.Current.MainPage = masterDetailPage;
在ios中它工作正常,但在android中我收到错误 -
No view found for id 0x1 xamarin form
请帮助我现在该怎么办?
答案 0 :(得分:0)
//您需要指定"标题"财产试试这个:
MasterDetailPage masterDetailPage = new MasterDetailPage
{
Title="xx",
Master = new partialMasterPageJobseeker(),
Detail = new NavigationPage(new Jobsearch()),
};
Application.Current.MainPage = masterDetailPage;