Thursday, December 6, 2012

Silverlight key event modifier key

Just wanted to share a quick tips, in WPF , and WINForms many times we needed to use the modifier key, and so does it needed in silverlight for taking special input and tab navigation, reverse tab navigation etc.

well no more talk just a code snippet

//modifier key in silverlight
bool isShift = (Keyboard.Modifiers & ModifierKeys.Shift) == (ModifierKeys.Shift);


Cheers!