CommunityToolkit/Maui

[BUG] StatusBarBehavior does not display the screen correctly

DaoChiMinh opened this issue · 1 comments

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

MainPage PushModalAsync to NewPage1,

at screen NewPage1 Set

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

but it shows Fuchsia color on mainpage

HP-14-11-2024-15-54-23.mp4

Expected Behavior

StatusBarBehavior displays the screen correctly

Steps To Reproduce

  1. Open and run solution from reproduction repository.
  2. click button in MainPage

Link to public reproduction project repository

https://github.com/CyberSoft-manager/MauiAppStatusBarBehavior

Environment

- .NET MAUI CommunityToolkit:9.1.1
- OS: Windows 11 22631.4317
- .NET MAUI: 9.0.0
android 34.0.138/8.0.100 SDK 8.0.400, VS 17.11.35327.3
ios 18.0.8303/8.0.100 SDK 8.0.400, VS 17.11.35327.3

Anything else?

No response

We do not yet support .NET 9.

Please test this again with CommunityToolkit.Maui v10.0.0 once it is available and reopen if the issue persists.