CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Silverlight and KeyDown topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 04:11 AM
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
xds4lx is on a distinguished road
| More
Silverlight and KeyDown

So this is a kinda complex problem. I have a silverlight application that I have developed that relies on some key presses to function, when running this application it grabs the KeyDown and KeyUp events off the host user control, everything works great. Well this application has to be hosted inside of another silverlight application, so you could think of my application as a dll (after all it really is) and it gets loaded into the main application through reflection. This hosting application has a few buttons and you click one to launch the desired application. To get the key presses we first tried to capture the KeyDown/KeyUp events on the main user control and they did not fire at all. We then added KeyDown/KeyUp events to the buttons and are able to pass our Key events into the application however we can not pass in spacebar or enter this way. Is there a way to do this that I haven't thought of yet. I also tried to change the buttons to rectangles, which worked for the button press events, however the rectangle fails to keep focus so it also has no key events fire.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:51 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board