Information Technology Distilled
Monday, July 7, 2008
Sending key presses to controls in WPF
The easiest way is to do the following:
KeyEventArgs keyEventArgs = new KeyEventArgs(e.KeyboardDevice, e.InputSource, e.Timestamp, Key.Right);
keyEventArgs.RoutedEvent = e.RoutedEvent;
.RaiseEvent(keyEventArgs);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Labels
.NET
ADO
ASP.NET
Builds
Code Generation
Components
Database
Design
General
Orcas
Performance
Setup
SOA
Threads
UI
Visual Studio
Win32
WPF
WWF
XML
Blog Archive
►
2009
(1)
►
February
(1)
▼
2008
(10)
►
October
(1)
►
August
(1)
▼
July
(1)
Sending key presses to controls in WPF
►
June
(1)
►
March
(2)
►
February
(4)
►
2007
(41)
►
December
(2)
►
November
(7)
►
September
(1)
►
August
(4)
►
July
(26)
►
June
(1)
About Me
Marthinus Swart
I am not well, and I am an Afrikaner, so it sort of makes sense.
View my complete profile
No comments:
Post a Comment