Prevent user from resizing columns with WPF ListView

后端 未结 5 1644
慢半拍i
慢半拍i 2020-12-06 04:27

How can I prevent a user from resizing GridViewColumns withing a ListView control?

5条回答
  •  失恋的感觉
    2020-12-06 05:06

    Darkonekt's answer is good, however it may be preferable to set IsHitTestVisible to false instead of IsEnabled. This has the benefit of not greying out the headers.

    
        
    
    

提交回复
热议问题