tags:

views:

13

answers:

2

Have a wpf user control with some buttons inside it. I need to intimate the main window when button click happens inside the wpf control. The main window has to initiate some actions upon receiving this message from the button click event inside the user control.

A: 

You can add a Click handler to all your Buttons, and in that Click handler, call the UserControl's OnClick method to generate a click event coming from the user control.

Will Dean
A: 

Check out Commands:

http://msdn.microsoft.com/en-us/library/ms752308.aspx

Ian Henry