WPF - How to combine DataTrigger and Trigger?

前端 未结 2 1256
余生分开走
余生分开走 2020-12-24 05:08

NOTE I have asked the related question: How to combine DataTrigger and EventTrigger?

I have a list box containing sever

2条回答
  •  独厮守ぢ
    2020-12-24 05:24

    For anyone else who's up against this problem, I found a solution that works for me. Of course, I'm still interested to see other interesting answers.

    Here's what I did:

    
      
        
        
      
      
    
    

    There's nothing special about this being a multi trigger though. If you just wanted to style the selected item differently in your data template, you could use:

    
      
    
    

提交回复
热议问题