Skip to content

[BUG] Status bar behavior doesn't work on .NET 10 on Android #2947

Closed

Description

@mduchev

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When we navigate to a page that has the StatusBarBehavior attached, and we've set a specific color for the status bar, the behavior doesn't actually modify the status bar accordingly. The status bar color takes the colorAccent color from the colors.xml file (or falls-back to the default one, if there's no such file).

Expected Behavior

When we navigate to a page that has the StatusBarBehavior attached, and we've set a specific color for the status bar, the behavior should change the status bar to be with the color that we've predefined.

Steps To Reproduce

  1. Add the StatusBarBehavior on a ContentPage.
  2. Set a specific StatusBarColor for it
  3. Open the page and observer

Link to public reproduction project repository

https://github.com/mduchev/StatusBarMauiNet10

Environment

- .NET MAUI CommunityToolkit: 13.0.0
- OS: macOS Tahoe 26.1
- .NET MAUI: 10.0.10

Anything else?

The bug is Android-only and is also happening if we use Shell navigation or if we define the behavior in the code-behind.

This used to work pre-.NET 10.

The StatusBarStyle property is working and updating properly.

One strange thing that I've seen is that when we navigate to a page, for a very short amount of time the page's background gets colored with the status bar color, but then it disappears. This can be observed in the following GIF:
Image

Activity

  1. VladislavAntonyuk commented on Nov 18, 2025

    @VladislavAntonyuk
    Contributor

    Already fixed by @TheCodeTraveler for android 35+

  2. mduchev commented on Nov 18, 2025

    @mduchev
    Author

    @VladislavAntonyuk Can you point me to the PR that fixes it? And when is it scheduled for release, if there's a date already?

  3. VladislavAntonyuk commented on Nov 18, 2025

    @VladislavAntonyuk
    Contributor

    @VladislavAntonyuk Can you point me to the PR that fixes it? And when is it scheduled for release, if there's a date already?

    32a0883

  4. locked and limited conversation to collaborators on Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions