0

I have developed MAUI app using Visual Studio 2022 v 17.14.16 and .NET 9 framework. To enable edge to edge I have done this with below code in MainActivity.cs file.

protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); if (Build.VERSION.SdkInt >= BuildVersionCodes.O) // API 26 { WindowCompat.EnableEdgeToEdge(Window); } var controller = WindowCompat.GetInsetsController(Window, Window.DecorView); if (controller != null) { controller.AppearanceLightStatusBars=true; // light icons on dark background controller.AppearanceLightNavigationBars=true; } ViewCompat.SetOnApplyWindowInsetsListener(Window.DecorView, new InsetsListener()); } public class InsetsListener : Java.Lang.Object, IOnApplyWindowInsetsListener { public WindowInsetsCompat OnApplyWindowInsets(Android.Views.View v, WindowInsetsCompat insets) { var systemBars = insets.GetInsets(WindowInsetsCompat.Type.SystemBars() | WindowInsetsCompat.Type.DisplayCutout()); v.SetPadding(systemBars.Left, systemBars.Top, systemBars.Right, systemBars.Bottom); return insets; } } 

We are using a hamburger menu / drawer. The Shell has its FlyoutBehavior set to Flyout, which allows that specific page to be displayed in edge-to-edge mode; however, other pages are unable to be displayed in this manner.

How does edge-to-edge functionality operate when Shell exhibits Flyout behavior? What modifications am I expected to implement to ensure this functions across all pages?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.