|
-
July 4th, 2008, 09:46 AM
#1
How can we handle Enter key on richTextBox in WPF?
Hi friends.
I want to handle Enter key or Space bar key on richTextBox in WPF.
By KeyDawn event I couldn't do it. 
Can you help me ?
-
July 4th, 2008, 04:00 PM
#2
Re: How can we handle Enter key on richTextBox in WPF?
OK. I found it :
<RichTextBox Name="t" PreviewKeyDown="t_PreviewKeyDown"></RichTextBox>
-
July 4th, 2008, 04:09 PM
#3
Re: How can we handle Enter key on richTextBox in WPF?
Yes. In general any WPF event that has a 'Preview' prefix is fired before the operation has occurred.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|