Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfoBar control hosted inside flyout control do not respond to themes changes #9198

Closed
devGIT28 opened this issue Jan 2, 2024 · 0 comments
Closed
Labels
bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). team-Controls Issue for the Controls team
Milestone

Comments

@devGIT28
Copy link

devGIT28 commented Jan 2, 2024

Describe the bug

In the below code, when Theme changes while the app is running, background color of the InfoBar control doesn't respond to it. However, text message respect themes changes.

<Button Content="Empty cart"> <Button.Flyout> <Flyout> <StackPanel> <TextBlock Style="{ThemeResource BaseTextBlockStyle}" Text="All items will be removed. Do you want to continue?" Margin="0,0,0,12" /> <Button Content="Yes, empty my cart" /> <muxc:InfoBar IsOpen="True" Severity="Warning" Title="Title" Message="Essential app message for your users to be informed of, acknowledge, or take action on." /> </StackPanel> </Flyout> </Button.Flyout> </Button>

Steps to reproduce the bug

  1. Create/host a InfoBar control inside Flyout xaml control.
  2. Build and launch the app.
  3. Change the Theme of the system from Dark to light or vice-versa.
  4. Notice the background color of the infobar

Expected behavior

Actual: Background color doesnt change.
Expected: Background color should change.

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 11 (22H2): Build 22621, Windows 11 (21H2): Build 22000

Additional context

If InfoBar control is used outside of Flyout control then it does respect the themes changes. Issue only occur inside Flyout xaml control.

@devGIT28 devGIT28 added the bug Something isn't working label Jan 2, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 2, 2024
@ranjeshj ranjeshj added team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@llongley llongley added this to the WinAppSDK 1.6 milestone Feb 27, 2024
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Feb 27, 2024
@codendone codendone added the fix-released The fix has been in a release (experimental, preview, stable, or servicing). label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working closed-Fixed Described behavior has been fixed. fix-released The fix has been in a release (experimental, preview, stable, or servicing). team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants