How do you implement something like drag and drop using (Silverlight) Windows Phone 7 (Mango)?
Ie, I add an image in the center of page, then want to allow the user to move that image around on screen, possibly also resizing it by pinching.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This turned out to be pretty simple as soon as I started playing around with Expression Blend 4!
This code did it really well for moving around:
The key part is that stuff within “Custom:Interaction.Behaviors”.
Not sure if this can be used to perform some other custom operations, or do pinching, but I guess it’s not too far away?
And this is not only for Mango level Silverlight – I haven’t actually installed Mango SDK yet, this should work on earlier versions.