Command for WPF TextBox that fires up when we hit Enter Key

前端 未结 5 2103
太阳男子
太阳男子 2020-12-04 17:31

It is very easy to bind Buttons in WPF apps to Commands in a VIEWMODEL class. I\'d like to achieve a similar binding for a TextB

5条回答
  •  孤街浪徒
    2020-12-04 18:05

    I've faced with the same problem and found solution here, here is the code sample:

    
      
        
      
    
    

提交回复
热议问题