WPF 踩坑笔记4 Prism 文本框回车事件
作者:互联网
<TextBox Name="xx" > <TextBox.InputBindings> <KeyBinding Command="{Binding MyCommand}" Key="Enter" CommandParameter="{Binding ElementName=xx}"/> </TextBox.InputBindings> </TextBox>
标签:ElementName,CommandParameter,Binding,Prism,文本框,xx,WPF 来源: https://www.cnblogs.com/wuhailong/p/15039499.html