Click here to Skip to main content
15,891,905 members
Articles / Desktop Programming / WPF

Passing events from child to parent control's built in handler in WPF

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
26 Jul 2011CPOL1 min read 21.7K   1  
In WPF, you can use the method UIElement.AddHandler(RoutedEvent, Delegate, Boolean) to specify that the UIElement should receive all events, including those that have been handled. Just subscribe your ListBox to the MouseDown event this way (you might do this in your custom control's...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
The MS Team, LLC.
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions