Monday, October 8, 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,





No comments:

Post a Comment

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