event on a custom control RRS feed

  • Question

  • How do I write an event on a custom control so that the xmal file that is consuming the custom control can be notified if something happens?

    For example,  want to expose the click event on my custom control as an event that the control that is consuming it can use to fire off a query.

    Thanks in advance.

    Monday, August 31, 2009 5:23 PM

All replies

  • Any chance you could provide some code snippits of a very simple example?

    All I want is a cutom control that contains a button.  When that button is clicked, I want the code behind of the xaml that where the custom control is embedded to pick that event up.  That is all I need.

    Monday, August 31, 2009 6:47 PM
  • One more thing. Its no problem for me to handle the event in the custom control where the event occurs.  My problem is being able to handle the event in the class where the event is embedded.  Do you know what I mean?

    Monday, August 31, 2009 6:50 PM