Added KeyBindingTriggerBehavior

This commit is contained in:
TheXamlGuy
2024-04-22 22:49:04 +01:00
parent 9bcf3c8ec6
commit 335be92cdc
+5 -3
View File
@@ -7,9 +7,11 @@
Width="300"
Classes="revealPasswordButton"
PasswordChar="●">
<TextBox.KeyBindings>
<KeyBinding Gesture="Enter" />
</TextBox.KeyBindings>
<Interaction.Behaviors>
<KeyBindingTriggerBehavior Gesture="Enter">
<NavigateAction Context="Main" Route="Vault" />
</KeyBindingTriggerBehavior>
</Interaction.Behaviors>
</TextBox>
</StackPanel>
</UserControl>