microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.15k stars 666 forks source link

MenuFlyout text color has the wrong theme when the IsEnable property is changed in CodeBehind and the application theme is different from the OS theme #9662

Open rlom opened 1 month ago

rlom commented 1 month ago

Describe the bug

I created a button with a MenuFlyout with three MenuFlyoutItem. When I click the first one, the next two switch to the Disabled state. However, when the application theme is different from the OS theme, the text is the wrong color.

Steps to reproduce the bug

1- I created a button with a MenuFlyout with three MenuFlyoutItem. image

2- Create a click event on the first MenuFlyout item that changes the IsEnable property to false. image

3- Put a different theme in your application than the OS theme.

Expected behavior

The color of the text must be in accordance with the theme, fully visible.

Screenshots

image

FlyoutSOThemeProblem

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 10 version 2004 (19041, May 2020 Update)

IDE

Visual Studio 2022

Additional context

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.