-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Add basic support for automation for DataGrid and DataGridRow #15174
Add basic support for automation for DataGrid and DataGridRow #15174
Conversation
You can test this PR using the following package version. |
|
||
protected override AutomationControlType GetAutomationControlTypeCore() | ||
{ | ||
return AutomationControlType.Custom; |
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.
UWP implementation uses three state possible values here:
https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/DataGrid/Automation/DataGridCellAutomationPeer.cs#L82-L98
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.
But I guess it's not as necessary for starters, since basic text works either way.
You can test this PR using the following package version. |
* Add basic support for automation for DataGrid and DataGridRow * Add DataGridCellAutomationPeer * Add DataGridColumnHeaderAutomationPeer * Add DataGridColumnHeadersPresenterAutomationPeer * Add DataGridDetailsPresenterAutomationPeer
What does the pull request do?
Adds basic automation support for DataGrid/DataGridRow
What is the current behavior?
DataGrid/DataGridRow controls are missing basic automation support.
What is the updated/expected behavior with this PR?
DataGrid/DataGridRow controls have basic automation support.
How was the solution implemented (if it's not obvious)?
Added automation peers for DataGrid/DataGridRow controls.
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Part of #10143