-
Notifications
You must be signed in to change notification settings - Fork 10
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
SelectionMode=Multiple, no checkboxes #50
Comments
At least a caveat (or a workaround, I just found about) : Don't know if this is a 'Feature' from WinUI, or if there can be something done about that. |
Thank you @VisualAlf for your feedback and findings. I tried setting these properties in few different ways but every time it works well for me. It would be helpful if you could share a code snippet that reproduces this issue. |
as I wrote in my previous comment, the problem stems from usage of Style.
Put a Breakpoint on any Buttonhandler and inspect tableView.SelectionMode. However, if you move SelectionMode out of the Style and set the prop at the TableView directly, it will work. Like so:
This is also, what happens if we set SelectionMode=Multiple. There won't be any checkboxes, since this SelectionMode doesn't make it to the tableview. If we proceed as above, however, the issue as mentioned in the title is gone. I don't know if this is a 'Feature' in WinUI, or if there can be something done about that. It certainly doesn't feel OK, anyway. |
Thank you, @VisualAlf, for the detailed explanation. The For instance, if It might be worthwhile to open an issue in the WinUI repository to highlight this behavior. |
'Multiple' should show checkboxes for each row. However if I start with this SelectionMode, either the ShowOptionsButton or the SelectAllButton is shown in the upper left corner. While there should be the selectAllCheckBox. Also no Boxes for any row.
Only, if I start with any other Mode (None, Single, or Extended) and then change the value via Hot Reload to be Multiple, the checkboxes will be shown.
Current values are:
The text was updated successfully, but these errors were encountered: