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

Add basic support for automation #332

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

wieslawsoltes
Copy link
Contributor

@wieslawsoltes wieslawsoltes commented Jan 9, 2025

Fixes: #331

Tasks:

  • TreeDataGrid
  • TreeDataGridRow
  • TreeDataGridCell
  • TreeDataGridColumnHeadersPresenter
  • TreeDataGridColumnHeader

Screenshots:

image

image

@wieslawsoltes wieslawsoltes marked this pull request as ready for review January 9, 2025 12:09

protected override AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.DataItem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be TreeItem, I think.
I was previously checking automation for Visual Studio PropertyGrid, and it was more behaving as a tree rather than grid.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Row itself should also implement IValueProvider

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And possible IToggleProvider (since it can be expanded/collapsed)


namespace Avalonia.Controls.Automation.Peers;

public class TreeDataGridCellAutomationPeer : ControlAutomationPeer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add basic support for automation
2 participants