WPF Image Control with Click Event

后端 未结 5 1591
天涯浪人
天涯浪人 2020-12-08 06:46

I wish to use an in my WPF Application which responds to mouse clicks. Only the \'Mouse Up\' and \'Moue Down\' events are available out of the box

5条回答
  •  星月不相逢
    2020-12-08 07:42

    1. OnMouseLeave - also set is isClicked to false; Otherwise you can click mouse away and release mouse. Then click mouse over and release mouse to still make a click happen.

提交回复
热议问题