by kirupa | 1 March 2007
Whenever you click on a button or type some text into a form in your browser, you are using events. More than likely, you never think about this, because it just works. You don't worry about how the mouse click is recognized, how your application knows which key was pressed, etc. The reason is that many of these lower level details are handled by your graphics framework itself. Even as a developer, your work with events is largely on the surface of what really goes on behind the scenes, but there is plenty of surface area to cover though! So, in this tutorial, I will explain how to use event handlers in the Windows Presentation Foundation (WPF).
This is a companion discussion topic for the original entry at https://www.kirupa.com/net/event_handling.htm