Skip to content

[BUG] StatusBarColor not applied with .NET 10 RC using StatusBarBehavior #2936

@lennard393

Description

@lennard393

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 setting the status bar colour using StatusBarBehavior or the Platform.StatusBar API in .NET 10 Release Candidate, the colour and style are not applied as expected. The same code works correctly in previous versions (e.g., .NET 9).

Expected Behavior

The Colour and style should be applied

Steps To Reproduce

Create a new .NET 10 RC MAUI project.

Install the latest CommunityToolkit.Maui package (12.3.0)

Add the following XAML to a page:

<ContentPage.Behaviors>
<toolkit:StatusBarBehavior
StatusBarColor="Red"
StatusBarStyle="LightContent"/>
</ContentPage.Behaviors>

Link to public reproduction project repository

https://github.com/lennard393/CommunityToolkit.StatusbarColor-Bug/tree/master/CommunityToolkit.StatusbarColor

Environment

- .NET MAUI CommunityToolkit: 12.3.0
- OS: Windows 10 Build 10.0.19041.0
- .NET MAUI: 10

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions