简体   繁体   中英

Xamarin forms App wont display either in IOS emulator and Android Emulator

Hi guys i am new to xamarin form apps and i am currently running my xamarin forms on visual studio 2019 for mac.I have created a sample app with sliders and label and everytime i try to debug in ios or android platform it shows deploying to device and later visual studio community for mac 2019 on the bar beside the simulators and on the emulators all it displays is welcome to xamarin.forms. I have checked so many blogs with no solution ,i would be glad if someone can help.attached is a screenshot of my emulator screen and xaml page. emulator and xaml screen

I think the reason is that your MainPage of the application is still the default one. In the App constructor check if the MainPage is created like this:

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

This is how you set your MainPage.

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