Solved

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

Posted on 2013-06-15
2
463 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
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
 

Author Closing Comment

by:FaheemAhmadGul
ID: 39305023
Many thanks.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 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