Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a global focus change event in Silverlight?

Tags:

silverlight

Is there a global focus change event? I would like to be notified every time FocusManager.GetFocusedElement changes.

like image 736
Jonathan Allen Avatar asked Nov 28 '25 02:11

Jonathan Allen


1 Answers

You can attach GotFocus and LostFocus event handlers on the root visual of your application (a page). Since these events are routed events they will bubble up the elements tree to the root every time focus changes inside your page.

like image 61
Pavlo Glazkov Avatar answered Nov 29 '25 21:11

Pavlo Glazkov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!