How to resolve an issue where WPF UserControl is not releasing focus?

Up vote 0 down vote favorite share g+ share fb share tw.

I have a WPF user control whose XAML is given here. When I put it on some other WPF window and TAB into this control while tabbing on the window, somehow this control does not lose focus. Focus comes on the "Search" button and stays there only.

How to resolve this problem? Why is it not releasing focus? UPDATE: When I add KeyboardNavigation.

TabNavigation="Once" to the UserControl element, the focus goes out of the control. BUT when I TAB from text box, it directly goes out instead of setting focus on the Search button. So this is certainly not expected behavior for me.

Wpf wpf-controls wpf-usercontrols link|improve this question edited Oct 19 '11 at 8:56 asked Oct 19 '11 at 7:58CSharpLearner620110 77% accept rate.

– AngelWPF Oct 19 '11 at 8:11 The user control is placed on the window where there is no other user control. But other WPF controls which are present on the window are focusable. – CSharpLearner Oct 19 '11 at 8:27.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions