SyntaxFix
Write A Post
Hire A Developer
Questions
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