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

Row Focus Order Does Not Match Visible Order #262

Open
xLEGiON opened this issue Feb 23, 2024 · 1 comment
Open

Row Focus Order Does Not Match Visible Order #262

xLEGiON opened this issue Feb 23, 2024 · 1 comment

Comments

@xLEGiON
Copy link

xLEGiON commented Feb 23, 2024

The Tab key can be used to change the focused cell. If the final cell of a row is focused, the focus will move to the next row.

If the TreeDataGrid contains enough rows to be scrolled and the user scrolls up/down, or if the source collection is modified (e.g. items being inserted), using Tab to change the focus to the next row will often make the focus switch to a seemingly random row instead of the next row visible to the user.

After inspecting the visual children of the TreeDataGridRowsPresenter during runtime, the focus order of the rows seems to match the order these rows appear in the AvaloniaList<Visual>, which won't always match the order the user sees the rows.

The expected behavior is that the row focus order matches the visible order.

Environment:
TreeDataGrid Version: 11.0.2
Avalonia Version: 11.0.6
Operating System: Windows 10

@xLEGiON
Copy link
Author

xLEGiON commented Apr 6, 2024

Adding a video to see the issue more clearly:

Row.Focus.Issue.webm

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

No branches or pull requests

1 participant