Hello BalauroiuRadu-9545,
Welcome to our Microsoft Q&A platform!
Please add a FlyoutItem
at least like following code format. If you do not add one FlyoutItem
, your AppShell is empty, So you will get a black background view.
<?xml version="1.0" encoding="UTF-8"?>
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:TestXamarin.Views"
x:Class="TestXamarin.AppShell">
<Shell.FlyoutHeader>
<controls:FlyoutHeader />
</Shell.FlyoutHeader>
<FlyoutItem Title="About" Icon="icon_about.png">
<ShellContent Route="AboutPage" ContentTemplate="{DataTemplate controls:AboutPage}" />
</FlyoutItem>
</Shell>
One or more flyout items can be added to the flyout, and each flyout item is represented by a FlyoutItem object.
Here is a document about Xamarin.Forms Shell flyout, please refer to it.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.