I want to disable the visual effect on Mouse Over on each item of my listbox,
and I would like to disable the visual effect when a user clicks, too.
I read that it could be done using a DataTrigger on Windows Phone,
but on Windows 8, we can not use DataTrigger :
DataTrigger in WinRT?
What else can I use to delete this visual effect ?
I saw the StyleSelector/ListViewItemStyleSelector, can I use this?
If yes, where can I find a sample, because i did not understood how it work.
If you mean disable the selected item style, then in WPF you can do this:
Unfortunately I don’t have access to Windows 8 yet, so I can’t say if it works on WinRT.
Alternatively if you don’t need any selection at all, just use an ItemsControl.
For example, instead of
<ListBox .../>use<ItemsControl .../>. An ItemsControl shows a list of items like a ListBox but has no concept of the selected item.