-
Notifications
You must be signed in to change notification settings - Fork 701
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
Comments
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:
|
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. |
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. |
We should remove the TopAppBar and BottomAppBar properties from Page since they are no longer recommended for use. We don't make abi breaking changes in 1.x releases so it is not something we can remove now, but it is something that we could do in a 2.x release. For now, I recommend working around the issue by adding a Grid to the root of your Page and putting the CommandBar in a top most or bottom most Auto sized Row. That should give the desired behavior. I will take note of this issue as a possible update to remove these two properties in a 2.x release (we do not currently have plans for a 2.0 release, but I imagine that it will happen at some point in the future). |
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
Expected behavior
CommandBar should be placed at the top of the page, not the window.
Screenshots
NuGet package version
None
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: