WPF键绑定passwordbox

时间:2016-09-19 08:01:30

标签: c# wpf binding

我有这个密码箱:

<PasswordBox x:Name="textBox1">
   <PasswordBox.InputBindings>
        <KeyBinding Key="Return" Command="{Binding MyCommand}"/>
   </PasswordBox.InputBindings>
</PasswordBox>

我想用所有键绑定我的命令,而不只是输入。

有可能吗?

感谢。

0 个答案:

没有答案