WPF: Disable ListBox, but enable scrolling

前端 未结 12 2310
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 05:33

Been banging my head against this all morning.

Basically, I have a listbox, and I want to keep people from changing the selection during a long running process, but

12条回答
  •  半阙折子戏
    2021-01-05 06:14

    There seem to be many ways to skin this particular cat. I found that by setting IsHitTestVisible on the ItemsContainerStyle in XAML I got exactly what I needed:

    
        
            
        
    
    

提交回复
热议问题