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 - MAUI - The "Close Button" hasn't Automation ID for inspection #9178

Open
leonardomelosantos opened this issue Dec 18, 2023 · 0 comments
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team

Comments

@leonardomelosantos
Copy link

Describe the bug

Hello!

Following the https://learn.microsoft.com/en-us/windows/apps/develop/title-bar to create a custom titlebar and when ExtendsContentIntoTitleBar = true is setted, all the titlebar become a InputNonClientPointerSource area.
This way is not possible to inspect the close, minimize and maximize buttons by AutomationId.

In UWP versions those buttons are AutomationId="Minimize", AutomationId="Maximize" and AutomationId="Close". There is some way to change this behavior? It's look like a limitation becouse when Titlebar is inpected we can only see InputNonClientPointerSource and AutomationId="".

I know that I can change button colors like page example, but and about AutomationIds?

Steps to reproduce the bug

  1. Open some WinUI application
  2. Open Inspect.exe to Inspect "Close Button" inside window title bar

Expected behavior

Show default Automation Id, like to UWP applications.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000

Windows version

Windows 10 (21H2): Build 19044, Windows 10 (21H1): Build 19043

Additional context

No response

@leonardomelosantos leonardomelosantos added the bug Something isn't working label Dec 18, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 18, 2023
@bpulliam bpulliam added area-TitleBar Issues related to custom window title bars. and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@bpulliam bpulliam added the team-CompInput Issue for IXP (Composition, Input) team label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working team-CompInput Issue for IXP (Composition, Input) team
Projects
None yet
Development

No branches or pull requests

2 participants