Skip to content

Prevent to focus DataColumn itself by default#783

Open
9rnsr wants to merge 1 commit intoCommunityToolkit:mainfrom
9rnsr:ImproveDataTable-2
Open

Prevent to focus DataColumn itself by default#783
9rnsr wants to merge 1 commit intoCommunityToolkit:mainfrom
9rnsr:ImproveDataTable-2

Conversation

@9rnsr
Copy link
Copy Markdown
Contributor

@9rnsr 9rnsr commented Feb 23, 2026

Separate PR from #781

From the design concept, DataColumn control simply provides a space for the header content, so it should not interact with keyboard operations by default. If focusable something is actually needed, DataTable users can place any controls like a button there.

@michael-hawker
Copy link
Copy Markdown
Member

Cool, I see this in the current gallery where there's a ghost tab stop, will just double-check that the ContentSizer is still navigable (though I noticed that it's not working with keyboard for adjusting column size, may be specific to the DataTable as I see this working on the other Sizer scenarios).

From the design concept, DataColumn control simply provides a space for the header content, so it should not interact with keyboard operations by default. If focusable something is actually needed, DataTable users can place any controls like a button there.
@9rnsr 9rnsr force-pushed the ImproveDataTable-2 branch from 3972b8f to 5bcd7f9 Compare April 25, 2026 00:35
@9rnsr
Copy link
Copy Markdown
Contributor Author

9rnsr commented Apr 25, 2026

@michael-hawker After this PR change, the tab navigation still move the keyboard focus to the ContentSizer, and then Left and right keys can resize the column.

image

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.

2 participants