-
Notifications
You must be signed in to change notification settings - Fork 697
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Question: How to make (easily) a selected ListViewItem visually distinct for SelectionMode=Multiple and IsMultiSelectCheckBoxEnabled=False? #6560
Comments
@RBrid do you have ideas? |
I am afraid there is no way to show the built-in selection indicator in Multiple mode. Two ideas: 1, tweak the ListViewItemBackgroundSelected, ListViewItemBackgroundSelectedPointerOver & ListViewItemBackgroundSelectedPressed resources in Default, Light and HighContrast themes to get more contrast. 2, draw your own selection indicator as part of the ListViewItem Content, when the item is selected.
You would have to use ListViewItemSelectionIndicatorCornerRadius for the corner radius, ListViewItemSelectionIndicatorBrush, ListViewItemSelectionIndicatorPointerOverBrush, ListViewItemSelectionIndicatorPressedBrush, ListViewItemSelectionIndicatorDisabledBrush for the brushes. Bonus points if you also animate the indicator's height as the item gets selected. |
@RBrid Thank you for your answer! A. In general, shouldn't the component support such a use case with rendering the selection indicator, if checkboxes are off? I believe it would improve user experience if it were built in. B. This is what I came up with so far:
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
When creating a
ListView
withSelectionMode=Multiple
andIsMultiSelectCheckBoxEnabled=False
, selected items are recognized only by a light gray backgroud, the same for pointer over, and therefore are harder to distinguish. WithIsMultiSelectCheckBoxEnabled=True
, there is a clear checkbox, for any otherSelectionMode
, there is a visual selection indicator at the left edge of a selection item.How can I make the
ListViewItem
s look the same as forSelectionMode=Extended
?Overriding
ItemContainerStyle.Template
with my ownListViewContentPresenter
and settingSelectionIndicatorVisualEnabled=True
didn't help.The text was updated successfully, but these errors were encountered: