We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004cb69 commit dd82536Copy full SHA for dd82536
src/Shared/HandyControl_Shared/Controls/Input/PinBox.cs
@@ -58,6 +58,28 @@ private void PinBox_Loaded(object sender, RoutedEventArgs e)
58
59
_passwordBoxsGotFocusEventHandler = PasswordBoxsGotFocus;
60
AddHandler(GotFocusEvent, _passwordBoxsGotFocusEventHandler);
61
+
62
+ FocusPasswordBox();
63
+ }
64
65
+ private void FocusPasswordBox()
66
+ {
67
+ if (!IsFocused)
68
69
+ return;
70
71
72
+ if (_panel.Children.Count == 0)
73
74
75
76
77
+ if (_panel.Children.OfType<System.Windows.Controls.PasswordBox>().Any(box => box.IsFocused))
78
79
80
81
82
+ FocusManager.SetFocusedElement(this, _panel.Children[0]);
83
}
84
85
private void PasswordBoxsPasswordChanged(object sender, RoutedEventArgs e)
0 commit comments