Solved

How to drag and drop content of one label to another label in Silverlight 5 Form

Posted on 2013-06-15
2
465 Views
Last Modified: 2013-07-07
I have a Form in a Silverlight 5 application with two lables (Label1 and Label2) on it.
The content of Label1 is “This is Label1” and the content of Label2 is “This is label2”.

I need help with code (C# or VB NET) that will allow me to accomplish the following:

When I drag Label1 and drop it over Label2, the content of Lable2 changes to “This is Lable1”.
So in this task, as I drag Lable1, I carry the content (or the data associated with lable1) of label1 and drop it over label2.

Thank you for your help in anticipation.
0
Comment
Question by:FaheemAhmadGul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Molnar István earned 400 total points
ID: 39263533
http://msdn.microsoft.com/en-us/library/cc189066%28v=vs.95%29.aspx

my idea is :
1. when on mousedown: get value from the label (in a global value)
2. when on mousemove: get current position (in global valuea)
3. when on mouseup: check the position / if position is the same as the second label position change text from first to lets say ""  and the second will get the global value

hope it helps
0
 
LVL 1

Author Closing Comment

by:FaheemAhmadGul
ID: 39305023
Many thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question