Invoke Command When “ENTER” Key Is Pressed In XAML

后端 未结 5 414
花落未央
花落未央 2020-12-24 08:38

I want to invoke a command when ENTER is pressed in a TextBox. Consider the following XAML:



        
5条回答
  •  生来不讨喜
    2020-12-24 09:01

    There is KeyTrigger in expression blend.

        
         
             
                
                   
                
             
             
    
    

    System.Windows.Interactivity and Microsoft.Expression.Interactions assemblies are available for WPF in the official Nuget package.

提交回复
热议问题