Hi there,
I'm searching a solution for a listview which is not tappable. I only want to display some informations via this view - there should be no highlighting by tapping or any action after a tap. Is there still an existing workaround?
Thank you for your help.
@LoriLalonde This only deactivates the selection, not the highlighting when tapping. Setting IsEnabled = false;
will do both, while still let you scroll through the ListView
.
Answers
set the cell to
IsEnabled = false;
When setting up your ListView, simply wire up the event handler to the ItemSelected event to disable the selection as follows:
@LoriLalonde This only deactivates the selection, not the highlighting when tapping. Setting
IsEnabled = false;
will do both, while still let you scroll through theListView
.@LoriLalonde Thanks, but @TorbenKruse is right. That does not deactivate the highlighting.
@TorbenKruse I thought if I would disable the cell, that the cell will become a bit more gray. Like a disabled button. Next time I should defenitely test it before asking!
Thank you for your help!
I've used a binding for my cells IsEnabled property but the problem is the tap still goes through once the bound property is changed even though it should be disabling it.