I have registered to a LostFocus event on a TextBox and yet the event is not catch - my guess is that someone else handled it. I've tried using snoop but it only shows me the MouseDown and MouseUp events (and I need the LostFocus). Any ideas on how can I find out?
Thanks
Update: Not so clear but the code where I register is:
eventInfo.AddEventHandler(cloningObject, eventDelegate);
In the XAML, make sure you assign a name to your TextBox:
Create a function in your code behind to handle the event:
And then in your window's constructor (assuming this is in a window):
Note also there is another event,
LostKeyboardFocus.