Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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