How to disable highlighting on listbox but keep selection?

前端 未结 7 1001
盖世英雄少女心
盖世英雄少女心 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.

    0 讨论(0)
提交回复
热议问题