Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does nothing in WPF have a click event?

This seems very strange to me.

I know through some adventurous inheritance you can convert most UIElements to a button, but it is a cumbersome way of implementing the most basic of of computer events

like image 510
Shane Avatar asked Dec 13 '25 07:12

Shane


2 Answers

The ButtonBase class certainly has a Click event. So has derived classes.

like image 67
Martin Liversage Avatar answered Dec 14 '25 19:12

Martin Liversage


I think the most basic events are MouseDown and MouseUp which are available to every UIElement

like image 42
Amsakanna Avatar answered Dec 14 '25 19:12

Amsakanna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!