Replies: 3 comments
-
@RBrid do you have ideas? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@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:
|
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions