Ha Duo


I am a bit confuse with WPF event handling
I have a textbox and it will do something when the enter key is hit.
<TextBox Name="txt_username" ></TextBox>
<PasswordBox Name="pwb_password" PasswordBox>

Can you please tell me how can i do it in WPF

Thanks a lot
Best regard

Re: Windows Presentation Foundation (WPF) Keyboard event hit return with textbox in WPF

Zhi-Xin Ye - MSFT

Move from Windows Forms General.