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

Wrong placement of CommandBar using Page's TopAppBar property. #9618

Open
jcz0389 opened this issue May 9, 2024 · 3 comments
Open

Wrong placement of CommandBar using Page's TopAppBar property. #9618

jcz0389 opened this issue May 9, 2024 · 3 comments
Labels
area-Commanding AppBar, UICommand, MVVM, etc bug Something isn't working team-Controls Issue for the Controls team

Comments

@jcz0389
Copy link

jcz0389 commented May 9, 2024

Describe the bug

The CommandBar is placed at the top of the window, rather than at the top of a specific Page.

Steps to reproduce the bug

  1. create two rows' grid in app window
  2. place a frame in second row
  3. create a page with CommandBar in page's TopAppBar prop
  4. show this page in the frame
  5. observe where CommandBar is displayed

Expected behavior

CommandBar should be placed at the top of the page, not the window.

Screenshots

image

NuGet package version

None

Windows version

No response

Additional context

No response

@jcz0389 jcz0389 added the bug Something isn't working label May 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 9, 2024
Copy link

github-actions bot commented May 9, 2024

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.

@jcz0389
Copy link
Author

jcz0389 commented May 9, 2024

This is the same cause as in #2970. In my app CommandBar is placed over "Click Me!" button and it is impossible to click the button.

@codendone codendone added area-Commanding AppBar, UICommand, MVVM, etc team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels May 10, 2024
@brabebhin
Copy link

I think the TopAppBar has been deprecated since windows 10 uwp. It's there to prevent compiler errors. Iirc TopAppBar was one of the key elements of the metro design language that simply forced apps to have a top and a bottom app bar, and used system defined rendering for that. It was replaced by the CommandBar cause nobody really wanted the inflexible behaviour of windows 8 metro app bars. I'm surprised it has any effect at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Commanding AppBar, UICommand, MVVM, etc bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants