Solved

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now