Capture mouse clicks on WPF TextBox

前端 未结 3 964
星月不相逢
星月不相逢 2021-02-03 21:25

I want to capture mouse clicks on a TextBox:



        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-03 21:53

    You can use the PreviewMouseDown event, and capture any clicks that way before the internal parts of the control process the click:

    
    

提交回复
热议问题