简体   繁体   中英

Redirecting to a Master Details page in xamarin form

my aim is to set the main mage as my master page after a successfully login. This is my code--

MasterDetailPage masterDetailPage = new MasterDetailPage
                {
                    Master = new partialMasterPageJobseeker(),
                    Detail = new NavigationPage(new Jobsearch()),
                };
                Application.Current.MainPage = masterDetailPage;

in ios it's working fine but in android i am getting an error -

No view found for id 0x1  xamarin form

please help me what should i do now?

//You need to assign the "Title" property try this:

MasterDetailPage masterDetailPage = new MasterDetailPage
                {
                   Title="xx",
                    Master = new partialMasterPageJobseeker(),
                    Detail = new NavigationPage(new Jobsearch()),
                };
                Application.Current.MainPage = masterDetailPage;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM