-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use FlyoutPage instead of Shell #23
Comments
I haven't ever used FlyoutPage myself, but looking at the code, I suppose that you shouldn't add wrapping ContentPage yourself, it is done automatically. <FlyoutPage Title="Flyout">
<Flyout>
<StackLayout>
<Button Text="Page 1" />
<Button Text="Page 2" />
</StackLayout>
</Flyout>
<Detail>
<ScrollView>
<VerticalStackLayout Spacing="25"
Padding="new(30,0)"
VerticalOptions="LayoutOptions.Center">
<Image Source="dotNetBotSource"
HeightRequest="200"
HorizontalOptions="LayoutOptions.Center" />
<Label Text="Hello, World!"
FontSize="32"
HorizontalOptions="LayoutOptions.Center" />
<Label Text="Welcome to .NET Multi-platform App UI"
FontSize="18"
HorizontalOptions="LayoutOptions.Center" />
<Button Text="@ButtonText"
HorizontalOptions="LayoutOptions.Center"
OnClick="OnCounterClicked" />
</VerticalStackLayout>
</ScrollView>
</Detail>
</FlyoutPage> That said, I am not sure why it was done this way, maybe it should be revised to allow you to create a page yourself. I'm wondering, though, what is the use-case to use FlyoutPage over Shell? What advantages does the former bring? |
Thank you for your response. |
@AmirImam I found the sample project MobileBlazorBindingsXaminals has a working Flyout. |
@ac-c2it @AmirImam Currently we're working with @Eilon to move all my changes back to https://github.com/dotnet/MobileBlazorBindings repo. Would you be able to log this issue there? As I hope that it will be worked on in that repository. |
Hi
I want to use FlyoutPage instead of Shell, but when I replaced Shell in AppShell.razor with FlyoutPage it shows blank page
AppShell.razor:
App.cs:
The text was updated successfully, but these errors were encountered: