Back to Devexpress

SystemBarBehavior Class

maui-devexpress-dot-maui-dot-core-6f45b377.md

latest2.6 KB
Original Source

SystemBarBehavior Class

A behavior that applies system colors to the system’s status bar .

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Core.dll

NuGet Package : DevExpress.Maui.Core

Declaration

csharp
public class SystemBarBehavior :
    Behavior<Page>

Remarks

Use the SystemBarBehavior class to set the bar’s colors in XAML:

xaml
<ContentPage ...>
    <ContentPage.Behaviors>
        <dx:SystemBarBehavior StatusBarForeground="Light" AndroidNavigationBarBackground="DarkGreen" />
    </ContentPage.Behaviors>
</ContentPage>

SystemBarBehavior includes the following properties:

PropertyDescription
AndroidNavigationBarBackgroundGets or sets the background color of the device’s navigation bar (works for Android 14 and earlier versions only). This is a bindable property.
AndroidNavigationBarForegroundGets or sets the theme that is used by the device’s navigation bar icons (works for Android 14 and earlier versions only). This is a bindable property.
AndroidStatusBarBackgroundGets or sets the status bar’s background color (works for Android 14 and earlier versions only). This is a bindable property.
StatusBarForegroundGets or sets the theme that is used in the device’s navigation bar icons. This is a bindable property.

Implements

INotifyPropertyChanged

Inheritance

System.Object BindableObject Behavior Behavior<Page> SystemBarBehavior

Extension Methods

Yield()

YieldIfNotNull()

See Also

SystemBarBehavior Members

DevExpress.Maui.Core Namespace