Skip to content

The background colour of MenuFlyoutPresenter changed to grey after upgrade #10484

@penndai

Description

@penndai

Describe the bug

When upgrade the Microsoft.WindowsAppSDK from version 1.3.230724000 to 1.4.230822000 (till the latest stable version Latest stable 1.7.250310001), we found the control MenuFlyout not working as before.
The issue is the background colour of the MenuFlyoutPresenter was set to "grey" colour by unknow codes rather than the value we set 'transparent'.

Steps to reproduce the bug

  1. In our app, there is a MenuFlyout control, and the background colour set to transparent
    `<MenuFlyout.MenuFlyoutPresenterStyle> <Style x:Name="menuFlyoutStyle" TargetType="MenuFlyoutPresenter"> </Style>

</MenuFlyout.MenuFlyoutPresenterStyle>`
2. When click the menu, it should display the defined items with transparent background
3. Now when click the menu, the background of the MenuFlyoutPresenter set to some 'grey' colour - similar as some focused color

Expected behavior

No response

Screenshots

After upgrading to the 1.4.230822000, it displays like below

Image

If roll back to the 1.3.230724000, it displays as below which is correct:

Image

NuGet package version

Windows App SDK 1.7.0: 1.7.250310001

Packaging type

Unpackaged

Windows version

Windows 10 version 2004 (19041, May 2020 Update)

IDE

Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions