Why doesn't WPF border control have a mousedoubleclick event?

前端 未结 3 600
-上瘾入骨i
-上瘾入骨i 2020-12-09 08:36

Why doesn\'t WPF border control have a mousedoubleclick event? I have a ItemsControl with some layout stuff in it for a DataTemplate. I want to handle the double click eve

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 08:53

    Just use InputBindings.

    
        
            
        
    
    

    In general; avoid using events if not developing controls in WPF. Usually the usage of code behind based events is a strong indication for a MVVM Pattern break.

提交回复
热议问题