locked
Constraining manipulations to keep Xaml elements on screen

    General discussion

  • Touch screens are cool. Being able to drag and manipulate pictures and objects on the screen is fun, and the Xaml manipulation system makes it easy to drag and zoom controls by touch. Touch down, zip your finger across the screen, and watch the control slide away.

    But what if we want to apply more control to the element? A recurring question is how to allow the control to pan and zoom within specific boundaries. If you don’t put any limits it is easy for the user to size or move the control beyond the ability to easily recover it.

    Happily, the manipulation events provide the base information to the app but don’t automatically apply the results. We can constrain or modify the results in code.

    Check out http://blogs.msdn.com/b/wsdevsol/archive/2014/06/10/constraining-manipulations.aspx to see how!

    Thursday, June 12, 2014 12:40 AM
    Owner