Skip to content

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)

Copy link
Contributor Author

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.

fd5be11

Copy link
Contributor Author

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)

cccc806


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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wieslawsoltes wieslawsoltes requested a review from maxkatz6 August 16, 2025 11:58
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