Skip to main content

IInsetsManager Interface

Definition​

Assembly:Avalonia.Controls
Package:Avalonia
public interface IInsetsManager

Properties​

NameDescription
DisplayEdgeToEdgePreferenceGets or sets whether the window draws edge to edge. behind any visible system bars.
DisplaysEdgeToEdgeGets whether the window is currently displaying edge to edge.
IsSystemBarVisibleGets or sets whether the system bars are visible.
SafeAreaPaddingGets the current safe area padding.
SystemBarColorGets or sets the color of the platform's system bars

DisplayEdgeToEdgePreference Property​

Gets or sets whether the window draws edge to edge. behind any visible system bars.

public bool DisplayEdgeToEdgePreference { get; set; }

DisplaysEdgeToEdge Property​

Gets whether the window is currently displaying edge to edge.

public bool DisplaysEdgeToEdge { get; set; }

IsSystemBarVisible Property​

Gets or sets whether the system bars are visible.

public Nullable<bool> IsSystemBarVisible { get; set; }

SafeAreaPadding Property​

Gets the current safe area padding.

public Avalonia.Thickness SafeAreaPadding { get; set; }

SystemBarColor Property​

Gets or sets the color of the platform's system bars

public Nullable<Avalonia.Media.Color> SystemBarColor { get; set; }

Events​

NameDescription
SafeAreaChangedOccurs when safe area for the current window changes.

SafeAreaChanged Event​

Occurs when safe area for the current window changes.

public event EventHandler<Avalonia.Controls.Platform.SafeAreaChangedArgs> SafeAreaChanged