Description
After Updating to Microsoft.Maui.Controls to 9.0.40 the Flyout Menu Icon disappears after making a navigation on the Flyout Details NavigationPage when the Flyout Page uses FlyoutLayoutBehavior="Popover"
On 9.0.22 the Flyout Menu is always visible which is our expected behavior.



Steps to Reproduce
- Clone the reproduction repository
- Run the Application on Windows
- open the Flyout Menu and Navigate to the Second Page (Hamburger Menu still in Title bar)
- Open Nuget Package Manager and update Microsoft.Maui.Controls to 9.0.40
- Run the Application again and navigate via Flyout Menu to the Second Page
Actual Behavior: The Flyout Menu Icon disappeared from the Windows Title Bar
Expected Behavior: The Back button and the Flyout Menu Button are available
Link to public reproduction project repository
https://github.com/Kornelis/WinUiHamburgerMenuMisssing
Version with bug
9.0.40 SR4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.22
Affected platforms
Windows
Affected platform versions
net9.0-windows10.0.19041.0
Did you find any workaround?
Unfortunately not. Tried to create a Custom FlyoutPage Handler but haven't found good workaround yet to have both Icons on the Titlebar
Relevant log output
Description
After Updating to Microsoft.Maui.Controls to 9.0.40 the Flyout Menu Icon disappears after making a navigation on the Flyout Details NavigationPage when the Flyout Page uses FlyoutLayoutBehavior="Popover"
On 9.0.22 the Flyout Menu is always visible which is our expected behavior.
Steps to Reproduce
Actual Behavior: The Flyout Menu Icon disappeared from the Windows Title Bar
Expected Behavior: The Back button and the Flyout Menu Button are available
Link to public reproduction project repository
https://github.com/Kornelis/WinUiHamburgerMenuMisssing
Version with bug
9.0.40 SR4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.22
Affected platforms
Windows
Affected platform versions
net9.0-windows10.0.19041.0
Did you find any workaround?
Unfortunately not. Tried to create a Custom FlyoutPage Handler but haven't found good workaround yet to have both Icons on the Titlebar
Relevant log output