Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

LostFocus event of usercontrol should fire only when focus moves out of usercontrol.

$
0
0

I have a User Control that has several children elements, including checkboxes and textboxes.

I would like to trigger the LostFocus event for my User Control only when the focus is lost on the entire User Control (e.g. clicking a button outside of the User Control).

Currently, the LostFocus event is also triggering when I move between children elements of my User Control, e.g. from one textbox to another.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>