Shell.NavBarHasShadow not working correctly on Android #19458
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
fixed-in-8.0.10
fixed-in-9.0.0-preview.2.10293
good first issue
Good for newcomers
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Shell.NavBarHasShadow
does not show the shadow under title bar on Android when being set onContentPage
. Stranglely when I debug the app and set this to false, then to true, the shadow does display.Steps to Reproduce
Create new .NET MAUI App, version .NET 8, or clone repo here: https://github.com/gubhit1s/MauiApp1
In
AppShell.xaml
, setShell.FlyoutBehavior="Flyout"
In MainPage.xaml, add
Shell.NavBarHasShadow="True"
Debug the project, the shadow doesn't appear.
In debug mode, change
Shell.NavBarHasShadow="False"
, the shadow doesn't appear.Also in debug mode, change
Shell.NavBarHasShadow="True"
, the shadow appears.Link to public reproduction project repository
https://github.com/gubhit1s/MauiApp1
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
Trying to switch to CustomRenderer
Relevant log output
No response
The text was updated successfully, but these errors were encountered: