Bubble and Tunnel events handling RoutedEventArgs

  • Thread starter Thread starter JuanC_LopGar97
  • Start date Start date
J

JuanC_LopGar97

Guest
I'm new in WPF and I found this new Concept "Bubble" and "Tunnel" events, I read about this events and I understand how them work. But, I was wondering, How a control can Trigger the container's event???, in other words, If I try to develop some code in Windows forms or a Console application to aproach this goal, How can I do that?, because, the only way to trigger the Container's event is expousse a public member to trigger it, and that could be a problem because, any other object could trigger the event with no reason.

The other question is, if I code a new "Bubble or Tunnel" event, there is not reason to do that, because, default controls don't have this event, just if my container is a Custom control as well, right?

I thought the solution could be a "friend" member like C++ but C# doesn't have this functionality.

Continue reading...
 
Back
Top