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

WinUI3 - CommandBar - non consistent background style #10242

Closed
mklemarczyk opened this issue Dec 17, 2024 · 1 comment
Closed

WinUI3 - CommandBar - non consistent background style #10242

mklemarczyk opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mklemarczyk
Copy link

mklemarczyk commented Dec 17, 2024

Describe the bug

When using CommandBar on Windows 11 23H2. The style of background changes depending is "See more" button is pressed or not.
I created empty application and added only that control, the background is transparent if button "See more" is not clicked.
Style changes to different background and adds some border to it when button "See more is pressed".

I observed the same behavior in WinUI3 Gallery app. I should highlight that tests were performed in Hyper-V Virtual Machine with Windows, with animations disabled in Windows, and in Enhanced view of Virtual Machine.

I do not know if I should open that ticket in this repository or https://github.com/microsoft/WindowsAppSDK. It would be good that you provide more details in repository itself.

The same behavior I reproduced also on friend laptop to eliminate possibility of Hyper-V interference. So it does not matter if Windows is in VM or not. Problem occurs in both cases.

Steps to reproduce the bug

  1. Open WinUI3 Gallery app from Windows Store.
  2. Go to Menus & toolbars, than select CommandBar.
  3. Click "See More" button and observe change in behavior of background.

Expected behavior

The background should be kept to the style that is when button is not pressed. Pressing See more button should only change state of this button and show the flyout with more commands.

Screenshots

See more not clicked:
Image
See more clicked:
Image

NuGet package version

  • Microsoft.WindowsAppSDK - 1.7.241114004-experimental1

Windows version

Windows 11 (23H2): Build 22631

Additional context

My app is build for net9.0-windows10.0.22621.0
For WinUI3 app version 2.5.1.0.

@mklemarczyk mklemarczyk added the bug Something isn't working label Dec 17, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 17, 2024
@mklemarczyk mklemarczyk changed the title CommandBar (non consistent background style) WinUI3 - CommandBar - non consistent background style Dec 17, 2024
@karkarl
Copy link
Contributor

karkarl commented Dec 19, 2024

This is by design. Please refer to the Fluent Windows Visual Library.

@karkarl karkarl closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Dec 19, 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
Projects
None yet
Development

No branches or pull requests

2 participants