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

  • SEARCH
  • Home
  • 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 7830175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:06:39+00:00 2026-06-02T11:06:39+00:00

Windows Phone 7.1 (Mang), SL4, VS 2010/Expression Blend. I have a UI element (an

  • 0

Windows Phone 7.1 (Mang), SL4, VS 2010/Expression Blend.

I have a UI element (an ellipse) that I’ve added the behavior MouseDragElementBehavior to so now I can drag my ellipse all over my other elements. Great. What I can’t figure out is how to determine where (what other UI element, specifically in this case a canvas) it was dropped on. Imagine a game board where you click and drag a piece from one square to another.

How can I determine if it’s been “dropped” on another element?

  • 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-06-02T11:06:41+00:00Added an answer on June 2, 2026 at 11:06 am

    The VisualTreeHelper class contains a method FindElementsInHostCoordinates to which you can pass the Point or Rect location of your Ellipse and then get all the Controls that exist in that location and act accordingly.

    You might find the remarks section in FindElementsInHostCoordinates useful.

    I think you can use that method no problem in basic scenarios. I used it for a while in one of my application’s then I decided to use a manual method where I just loop over the controls and checking whether an intersection (or Point containment) occurs. Then just get the first control that is hit.

    Please tell me if you have reached a better solution because I’m looking for ideas better than what I have already done! Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Windows Phone 7.5 app. Designer has created Home.xaml in Blend that has 3 images(menu
I'm writing a Windows Phone Mango app. I have a hyperlink that contains email
My app is a windows phone 7 application. In that i have created a
Windows Phone 7 have a lot of cool helpers, that allow easly to manage
I have developed a windows phone app that sends notification to users. There is
I've got a Windows Phone 7 Silverlight app that I am trying to use
What Windows Phone 7 demo/reference applications have you seen which really made you interested
Is it allowed by Windows Phone application certification rules, to only have users be
Does Windows Phone have a limit on the amount of heap memory an app
In Windows Phone (mango) I am using Microsoft.Phone.Controls.Maps. I currently have: var _City =

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.