microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
805 stars 50 forks source link

Provide a global way to intercept Routed events etc #159

Open monkeynoises opened 7 years ago

monkeynoises commented 7 years ago

In WPF you had your RegisterClassHandler to individually "monitor" specific events occurring on a particular class, and you had the InputManager to monitor input based events occurring.

(I don't know enough about UWP, Xamarin, to know if they have those capabilities).

https://stackoverflow.com/questions/2105607/wpf-catch-last-window-click-anywhere

What I'd like to see is a global hook that received all events in preview. This could be used for various purposes - logging/tracing, integration testing, morphing one event to another, or more than one, etc.

It's kind of a similar concept you had to PreTranslateMessage.....but you aren't dealing with WIN32 messages.

MovGP0 commented 7 years ago

duplicate of #93