Search code examples
c#wpfwinformsevent-bubblingtunneling

Any smart pattern to accomplish Bubbling and Tunneling for Events on Winforms?


Can we accomplish on Winforms both Tunneling and Bubbling? Maybe by using some API Message Interception? Any article about that?


Solution

  • Windows Forms was not designed to handle that. You would need to make your own event aggregator, implement your own visual or logical tree, etc, in order to make it work.

    If you want this behavior, I recommend just using WPF.