How to get MouseMove and KeyDown global events in Silverlight

Application.Current.RootVisual.KeyDown + = Application_KeyDown

The above does not work if I am in a ChildWindow that was created at runtime. My question is: how do I get a mousemove or keydown event in the parent window that this ChildWindow is hosted in?

In addition, I do not want to change anything in the child window (i.e. add an event that causes a direct parent event). I would just like to receive a global key change event. Is this possible in Silverlight 3?

+3
source share
1 answer

Global Keydown. Application_KeyDown ChildWindow KeyDown, Show Closed.

0

Source: https://habr.com/ru/post/1727413/


All Articles