WPF Rectangle does not have a Click event

后端 未结 4 797
南旧
南旧 2020-12-15 05:00

It seems that the WPF Rectangle shape does not have the Click event defined. What am I supposed to use instead?

It does have MouseUp, but it\'s not quite the same be

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 05:27

    Rectangle has event Tapped, which works fine. In designing universal apps for Windows 8.1, there are new events. Tapped, DoubleTaped, RightTapped and Holding.

提交回复
热议问题