Handling already handled events in WPF

This is a simple trick to handle already handled routed events in WPF application. In WPF the routed events are passed down through the visual tree from the source of the event until they meet the element that can handle them. This behavior, called bubbling, is sometimes not what we expect. Imagine a situation when we have a grid and other child controls in it. We want to …

By Mirek on (tags: routed events, WPF, categories: code)