How to disable highlighting on listbox but keep selection?

前端 未结 7 1177
盖世英雄少女心
盖世英雄少女心 2020-11-30 02:18

I am having trouble finding how to not allow my ListBox to highlight the item selected. I know that I didn\'t add a trigger to highlight the item.



        
7条回答
  •  长情又很酷
    2020-11-30 03:08

    You will have to re-template ListBoxItem. In the default template, it has a trigger that highlights itself when IsSelected property is true. You just have to create a template that does not have that trigger.

提交回复
热议问题