Skip to content

Commit 4e8c2c4

Browse files
committed
call PasswordBoxOnPasswordChanged after initialization
to support passwordboxes which are initially not empty fixes #213
1 parent c4a64c2 commit 4e8c2c4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

MaterialDesignThemes.Wpf/PasswordFieldAssist.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ private static void ManagedPropertyChangedCallback(DependencyObject dependencyOb
2323
if (passwordBox != null)
2424
{
2525
passwordBox.PasswordChanged += PasswordBoxOnPasswordChanged;
26-
ConfigureHint(passwordBox);
26+
// call listener immediately, maybe passwordbox was not empty
27+
PasswordBoxOnPasswordChanged(passwordBox, new RoutedEventArgs());
2728
}
2829
}
2930

@@ -89,10 +90,5 @@ public static bool GetIsNullOrEmpty(DependencyObject element)
8990
return (bool)element.GetValue(IsNullOrEmptyProperty);
9091
}
9192
}
92-
93-
public static class ProgressBarAssist
94-
{
95-
96-
97-
}
93+
9894
}

0 commit comments

Comments
 (0)