Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6212799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:34:55+00:00 2026-05-24T06:34:55+00:00

How do you implement something like drag and drop using (Silverlight) Windows Phone 7

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:34:55+00:00Added an answer on May 24, 2026 at 6:34 am

    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:

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
           <Image Margin="129,112,167,122" Source="mypicture.png" Stretch="Fill">
                    <Custom:Interaction.Behaviors>
                        <il:MouseDragElementBehavior/>
                    </Custom:Interaction.Behaviors>
           </Image>
    </Grid>
    

    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.

    • I found out that this doesn’t seem to allow more than one image dragged at a time. AFAIK, the iPhone supports 11 fingers touching the screen at once – I once built an application where you could move many things around on screen and it worked well at the same time. Not sure what the limits are for WP7 phones but the Samsung I’m using is probably not limited to 1 touch – this is likely a problem with this code. Someone got a better solution?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What Swing class can I use to implement something like this? Add To List
I'd like to implement drag&drop in wxPython that works in similar way that in
I want to implement something like this using JSF.(part of search screen) More and
I was looking to implement something like the image below, and really have no
I would like to implement a table in JSP page which is something similar
I need to implement mouse drag events which look something like this: class MouseDragEvent
Is it possible to implement something like a Smalltalk-style whileTrue: method in Objective-C using
I want to implement something like a WCF OData provider but using NetTcpBinding instead
I'm trying to implement something like this: <div> <table> <thead> <tr> <td>Port name</td> <td>Current
I want to implement something like Col3 = Col2 + Col1 in SQL. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.