Hello,
After testing, when using Shell, you can use the following code to change the background color.
Shell.BackgroundColor="Green"
When using NavigationPage, you need to open the Resources/Styles/Styles.xaml
file under the MAUI project and modify the default style of NavigationPage to change the background color.
<Style TargetType="NavigationPage">
<Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Green}, Dark={StaticResource Green}}" />
<Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
<Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
</Style>
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.