locked
How can I check key modifiers inside tapped event handler?

    Question

  • TappedRoutedEventArgs seems to be missing keyModifiers which are present PointerRoutedEventArgs.

    The behavior I am trying to implement is multiple select (by clicking/tapping on my custom objects drawn using Direct2D).

    Thursday, September 6, 2012 4:39 PM

Answers

  • You can either use PointerReleased instead of Tapped or call CoreWidow::GetKeyState to get the state of the key you were looking for.

    --Rob

    • Marked as answer by Jesse Jiang Thursday, September 13, 2012 3:12 AM
    Friday, September 7, 2012 2:52 AM
    Owner