Preventing user selecting items in a ListView
In WPF, the SelectionMode property of ListView has a possible value of "None" to prevent a user from selecting items in the ListView. This value seems to be missing in the Noesis.SelectionMode enum. Is there a workaround for this?
Re: Preventing user selecting items in a ListView
Turns out the None value is a UWP thing, but the question how to work around there not being one still stands.
-
sfernandez
Site Admin
- Posts: 3154
- Joined:
Re: Preventing user selecting items in a ListView
Could be an option to disable the ListViewItems? You can do that in the ItemContainerStyle for the ListView.
If not you can always handle the PreviewMouseDown in the ListView to avoid the selection.
Please let me know if that works for you.
If not you can always handle the PreviewMouseDown in the ListView to avoid the selection.
Please let me know if that works for you.
Who is online
Users browsing this forum: No registered users and 1 guest