CheckBox IsHitTestVisible


    
        
        
    
    
    

设置IsHitTestVisible=false,checkbox不再能被命中,点击它相当于点击它下面那一层的控件,即TextBlock

示例代码

https://github.com/zLulus/NotePractice/tree/dev3/WPF/WpfDemo/CheckBox

你可能感兴趣的:(CheckBox IsHitTestVisible)