Insets Manager
The InsetsManager
allows you to interact with the platform's system bars and handle changes to the safe area of the mobile window.
The InsetsManager
can be access through an instance of TopLevel
or Window
, for more details on accessing TopLevel
please visit TopLevel page:
var insetsManager = TopLevel.GetTopLevel(control).InsetsManager;
As for now, this service has implementation only on mobile and browser backends. If you need to adjust desktop window decorations, please use Window.ExtendClientAreaToDecorationsHint
, Window.ExtendClientAreaChromeHints
, Window.ExtendClientAreaTitleBarHeightHint
properties.
Properties
IsSystemBarVisible
Gets or sets a value indicating whether the system bars are visible. Returns null if the platform doesn't support showing or hiding system bars.
bool? IsSystemBarVisible { get; set; }
DisplayEdgeToEdge
Gets or sets a value indicating whether the window should be drawn edge-to-edge behind any visible system bars.
bool DisplayEdgeToEdge { get; set; }
SafeAreaPadding
Gets the current safe area padding. The safe area represents the portion of the window that is not obscured by system bars.
Thickness SafeAreaPadding { get; }