I am trying to understand how UI related RoutedEvents are generated in WPF.
For instance, how does pressing the left mouse button on a control starts the tunneling of PreviewMouseDown
?
I couldn't find a clear answer myself. My intuition is that the messages received by the window (e.g. WM_MOUSEFIRST
) are processed and events are raised as a consequence, but this is just my guess.