private void TxtPassword_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { ImgPasswordError.Visibility = Visibility.Hidden; TxtPassword.ClearValue(ToolTipProperty); TxtPassword.ClearValue(BorderBrushProperty); }