WPF 踩坑笔记4 Prism 文本框回车事件

<TextBox Name="xx" >
     <TextBox.InputBindings>
       <KeyBinding Command="{Binding MyCommand}" Key="Enter"  CommandParameter="{Binding ElementName=xx}"/>
    </TextBox.InputBindings>
</TextBox>

  

posted @ 2021-07-21 14:52  喜爱糖葫芦  阅读(250)  评论(0编辑  收藏  举报