Maui
Maui copied to clipboard
[BUG] Setting NavigationBar.Style has no effect
Is there an existing issue for this?
- [x] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
Setting NavigationBar.Style has no effect.
Expected Behavior
NavigationBar.Style should work.
Steps To Reproduce
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:droid="clr-namespace:CommunityToolkit.Maui.PlatformConfiguration.AndroidSpecific;assembly=CommunityToolkit.Maui"
xmlns:local="clr-namespace:MauiApp1"
droid:NavigationBar.Color="White"
droid:NavigationBar.Style="LightContent"
x:Class="MauiApp1.NewPage1"
Changing NavigationBar.Color works. But, Style does nothing. It's permanently set to Dark.
LightContent:
DarkContent:
The sample in CommunityToolkit does not work either. Toggling NavigationBar style does nothing.
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/blob/fea67c2ff72f89ed118be044a82d8a572e405bf0/samples/CommunityToolkit.Maui.Sample/Pages/PlatformSpecific/NavigationBarPage.xaml
Environment
- .NET MAUI CommunityToolkit: 9.0.3
- OS: Win 11
- .NET MAUI: 8.0.80
Anything else?
No response