private void PasswordPanelEntry_GotFocus(object sender, RoutedEventArgs e) { if (PasswordPanelEntry.Text.Equals("Enter your private key here")) { PasswordPanelEntry.SelectAll(); } }
private void ShowPasswordPanel(EncryptDecryptOperation encryptDecryptOperation, string filePath) { kPw.EncryptDecryptDone = false; PasswordPanelOperation.Content = encryptDecryptOperation.ToString(); PasswordPanelOperation.Foreground = Colour.SolidColorBrush(encryptDecryptOperation); PasswordPanelFileName.Content = kPwFile.TmpName; PasswordPanel.Visibility = Visibility.Visible; PasswordPanelEntry.Focus(); }