Is it possible for a control to define a handler for an event, that the control can't itself raise?

 Posted by Naimishforu on 2/7/2011 | Category: WPF Interview questions | Views: 3042 | Points: 40
Answer:

Yes, It's is possible for a control to define a handler for an event, that the control can't itself raise.

These incidents are called attached events.

For example, a button controls in a grid. The button class defines a click event, but the grid class doest not. However, you can still define a handler for buttons in the grid by attaching the Click events of the button control.


Source: Self | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response