-
Notifications
You must be signed in to change notification settings - Fork 561
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
[UWP][Accessibility] Use element tag instead of access key for internal tracking #3820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else | ||
{ | ||
ComPtr<IElementTagContent> tagContent; | ||
THROW_IF_FAILED(MakeAndInitialize<ElementTagContent>(&tagContent, nullptr, nullptr, nullptr, nullptr, false, true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are all these nullptr and booleans? Could we get a comment to make it more descriptive? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're non-relevant constructor parameters. But this is silly. Added a constructor that doesn't take all this to allow callers to construct a default tag content object and make the code a little clearer.
In reply to: 389054235 [](ancestors = 389054235)
Related Issue
Fixes #3819
Description
The WholeItemsPanel keeps track of which items have been marked as
"height":"stretch"
in order to render them properly. In order to do this, the code was stashing an identifier in theAccessKey
property of the xaml elements (#1377). Unfortunately, that was causing access keys to show up in the UI when the user presses 'Alt'.Updated the code to use the
Tag
property to handle this internal tracking, as that is a place for custom data that won't have a UI impact. Because we're already using the Tag property for a variety of purposes, added theIsStretchable
property to the existingElementTagContent
type.How Verified
Confirmed that the card from bug #3819 no longer generates an access key. Verified existing VerticalStretch cards still render correctly.
Microsoft Reviewers: Open in CodeFlow