Getting white screen when using Xamarin.Forms.Shell

Carlo Goretti 121 Reputation points
2021-06-08T07:10:13.66+00:00

Hey,

When im trying to use Xamarin.Forms.Shell do display one of my ContentPages then i only get a white screen...
Any ideas what im doing wrong? When im checking against Microsofts examples then i seems to be the right way...
Here is my Code:
103325-image.png

And here is the white Screen:
103319-image.png

Thankful for some tips!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,336 questions
0 comments No comments
{count} votes

Accepted answer
  1. JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
    2021-06-09T03:29:53.193+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    I couldn't see the full code of your app. But you can recheck if you have added some controls in your page LoginPage .

    As a test,I created a simple demo by selecting Flyout template, just as follows:

    103624-image.png

    Then I commented out the following code in AppShell.xaml:

    <FlyoutItem Title="About" Icon="icon_about.png" FlyoutDisplayOptions="AsSingleItem">  
        <ShellContent Route="AboutPage" ContentTemplate="{DataTemplate local:AboutPage}" />  
    </FlyoutItem>  
    <FlyoutItem Title="Browse" Icon="icon_feed.png" FlyoutDisplayOptions="AsSingleItem">  
        <ShellContent Route="ItemsPage" ContentTemplate="{DataTemplate local:ItemsPage}" />  
    </FlyoutItem>  
    

    after that I rebuilt this app and deployed to my enulator, it result is:

    103686-image.png

    Best Regards,

    Jessie Zhang

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.