Friday, October 12, 2012

Access Keys in Silverlight like Alt + O, Alt + C, Alt + S

Access Keys in Silverlight like Alt + O, Alt + C, Alt + S

Hi,
I have two 3 buttons Open, Clear, Save. so When I press Alt +O it has to do some operation and Alt + C for clear and Alt +S for save operation. How can we achieve this.
Regards,
Suresh Sahu

Answers & Comments...

Answer: 1
Hi Suresh,
You can utilize ModifierKeys Enumeration to check multiple key press combinations, please refer a thread below:
http://stackoverflow.com/questions/2619749/silverlight-handling-multiple-key-press-combinations
Best Regards,


Answer: 2
Hi,

I have tried the above link but it is not working. Any one who has tried can send me the sample code.
Regards,


Answer: 3
Hi Suresh,
check the below link :
http://www.w3.org/WAI/GL/WCAG20-TECHS/SL15.html
http://www.rajneeshnoonia.com/blog/2010/05/silverlight-hot-keys/
http://justgeeks.blogspot.in/2009/08/capturing-keyboard-shortcut-in.html
http://stackoverflow.com/questions/2833416/apply-shortcut-keys-to-silverlight-page
If it will help you "Mark as answer"




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog