You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set SelectionMode in ListBox to 'Multiple'. If I do it directly in the ListBox, it works fine and I can choose multiple items.
However, if I set it using Style, the ListBox doesn't change selection behaviour.
To Reproduce
Set SelectionMode using Style. Then you won't be able to select multiple items in the ListBox while holding down ctrl key.
I believe the issue is that you add the style inside ListBox styles. But the ListBox will only look for patent styles. Can you try to add the style in your root element or App.Styles?
Describe the bug
I want to set SelectionMode in ListBox to 'Multiple'. If I do it directly in the ListBox, it works fine and I can choose multiple items.
However, if I set it using Style, the ListBox doesn't change selection behaviour.
To Reproduce
Set SelectionMode using Style. Then you won't be able to select multiple items in the ListBox while holding down ctrl key.
Expected behavior
The behavior should be the same as when setting SelectionMode directly in the ListBox.
Avalonia version
11.0.0, 11.0.6, 11.0.10
OS
Windows
Additional context
This bug doesn't occur in version 0.10.22.
The text was updated successfully, but these errors were encountered: