UtariD
UtariD
CC#
Created by UtariD on 1/24/2025 in #help
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;
}
}
}
6 replies