void textbox_LostFocus(object sender, RoutedEventArgs e) { if (!comment_textbox_reply.IsFocused && !comment_textbox_default.IsFocused)// && !textbox_password.IsFocused) keyboard_frame.Visibility = System.Windows.Visibility.Collapsed; }