C
C#•2d 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;
}
}
}
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;
}
}
}
4 Replies
Nasdack
Nasdack•2d ago
Looks like a bug You can create an issue
Mercenary654
Mercenary654•2d ago
make the window unsizeable 🙂
FusedQyou
FusedQyou•2d ago
Welcome to Maui

Did you find this page helpful?