Skip to content

Commit

Permalink
auto-focus PasswordDialog text box
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminiserman committed Feb 11, 2022
1 parent b425ccb commit ea709cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions WingCryptWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ private bool ConfirmPassword()
{
try
{

string confirm = PasswordDialog.GetPassword();

if (confirm == passwordTextBox.Password)
Expand Down
2 changes: 1 addition & 1 deletion WingCryptWPF/PasswordDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Width="325"
ResizeMode="CanMinimize"
SizeToContent="WidthAndHeight">
<Grid>
<Grid FocusManager.FocusedElement="{Binding ElementName=passwordTextBox}">
<Grid.RowDefinitions>
<RowDefinition Height="5"/>
<RowDefinition Height="*"/>
Expand Down

0 comments on commit ea709cd

Please sign in to comment.