question

CarloGoretti-1185 avatar image
0 Votes"
CarloGoretti-1185 asked JessieZhang-2116 commented

Getting white screen when using Xamarin.Forms.Shell

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!


dotnet-xamarin
image.png (44.6 KiB)
image.png (94.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered JessieZhang-2116 commented

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.



image.png (24.0 KiB)
image.png (11.8 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @CarloGoretti-1185 , I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·

Sorry for that... I havent been able to test this yet...

0 Votes 0 ·

@JessieZhang-2116 I tested now but still only got a white screen...
106849-image.png


0 Votes 0 ·
image.png (17.1 KiB)

Could you please post a basic demo to github or onedriver so that we can test on our side?

0 Votes 0 ·