Quantcast
Channel: 2,000 Things You Should Know About WPF » RoutedEventArgs
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

#500 – Sharing an Event Handler Across Multiple Controls, Method 1

You can use the same event handler for more than one control by specifying the handler for each control and pointing to the same event handler code. In the example below, we have three buttons, each of...

View Article



Image may be NSFW.
Clik here to view.

#502 – Sender vs. RoutedEventArgs.Source

When handling a routed event, you can check the RoutedEventArgs.Source property to get at the control that is the originator of the event.  But the event handler also includes a sender property that in...

View Article

Image may be NSFW.
Clik here to view.

#601 – The RoutedEventHandler Delegate Type

In the example showing the implementation of the ButtonBase.Click routed event, you’ll notice that the Click event is declared as a standard CLR event whose type is the RoutedEventHandler delegate...

View Article

Image may be NSFW.
Clik here to view.

#602 – Accessing Information in RoutedEventArgs

All predefined routed events in WPF are declared as instances of a delegate type that passes back either an instance of RoutedEventArgs or of some subclass of RoutedEventArgs. public delegate void...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images