I have a TextBox and a Button in my view.
TextBox
Button
Now I am checking a condition upon button click and if the condition turns out to be false, displ
The problem is that once the IsUserNameFocused is set to true, it will never be false. This solves it by handling the GotFocus and LostFocus for the FrameworkElement.
I was having trouble with the source code formatting so here is a link