diff --git a/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.cs b/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.cs index 2775bc88904a..469754b94148 100644 --- a/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.cs +++ b/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.cs @@ -76,6 +76,11 @@ protected override void OnAppearing() AppShell!.FlyoutHeaderBehavior = (FlyoutHeaderBehavior)flyoutHeaderBehavior.SelectedIndex; } + void OnToggleFlyoutIsPresented(object sender, EventArgs e) + { + AppShell!.FlyoutIsPresented = !AppShell!.FlyoutIsPresented; + } + void OnToggleFlyoutBackgroundColor(object sender, EventArgs e) { AppShell!.RemoveBinding(Shell.FlyoutBackgroundProperty); diff --git a/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.xaml b/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.xaml index 7fae4ca459cf..f1b1ee64a747 100644 --- a/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.xaml +++ b/src/Controls/samples/Controls.Sample/Pages/Core/ShellGalleries/ShellChromeGallery.xaml @@ -13,6 +13,10 @@ Text="Flyout Behavior" Style="{StaticResource Headline}"/> +