I've searched and I've not found the answer yet. I need to disable the click that happens in each item of a list and makes it be blue, as if it is selected. The problem is that my list items aren't selectables items, my list is only for the user see some informations.
Asked
Active
Viewed 4,218 times
2
-
provide some more info what you have tried and screen shot. – Ziyad Godil Sep 18 '17 at 05:37
-
This might be what you are looking for https://stackoverflow.com/a/26682064/1771254 – pinedax Sep 18 '17 at 06:15
2 Answers
4
you can use IsEnabled = "False"
as Barney said Or otherwise asign null value to selected item after selection event.
<ListView ItemSelected="ListView_ItemSelected" />
...
private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
{
var list = (ListView)sender;
list.SelectedItem = null;
}

Uraitz
- 476
- 4
- 12
2
Add IsEnabled="False"
into your ListView
as shown here
<ListView IsEnabled="False">

Barney Chambers
- 2,720
- 6
- 42
- 78