© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
5 replies
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?


    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;
            }
        }
    }
    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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Winforms control not updating on window resize
C#CC# / help
16mo ago
Resize Windows Terminal Window (ConsoleApp)
C#CC# / help
2mo ago
Flyout Styling (Avalonia)
C#CC# / help
16mo ago
✅ Transparent flyout items
C#CC# / help
2y ago