C#C
C#11mo ago
UtariD

Flyout Disappears on Window Resize: What Could Be Wrong?

My toggle button is working correctly for the sidebar I designed with a flyout. My goal is to toggle between a view where only the icons are visible and a full view. However, if the window is resized, the flyout completely disappears. What could be causing this? Am I missing something while configuring the flyout?


c#

    public partial class AppShell : Shell
    {
        public AppShell()
        {
            InitializeComponent();

        }
        private void OnToggleClicked(object sender, EventArgs e)
        {
            if (Shell.Current.FlyoutBehavior == FlyoutBehavior.Locked)
            {
                Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented;
            }
        }
    }
xaml.md3.2KB
Was this page helpful?