473,569 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drag listboxitem onto a canvas WPF

Hi,

I have a listbox on my WPF window and a cnavas. I have to be able to
drag the items from the list box and drop them on the canvas and draw
the item accorgingly.

If anyone knows how to accomplish it, then please let me know.

Any help will be greatly appreciated.
Thanks for you time in advance.
Jun 27 '08 #1
1 5271
I have a listbox on my WPF window and a cnavas. I have to be able to
drag the items from the list box and drop them on the canvas and draw
the item accorgingly.

If anyone knows how to accomplish it, then please let me know.

Any help will be greatly appreciated.
Thanks for you time in advance.
These three articles give a good introduction:
http://blogs.msdn.com/jaimer/archive...nd-to-end.aspx
http://blogs.msdn.com/jaimer/archive...wpf-part2.aspx
http://blogs.msdn.com/jaimer/archive...-and-code.aspx

Chris Jobson
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1742
by: Patrick Robinson | last post by:
Hi all, I'm looking to develop a drag and drop gui for an application i'm writing and although pretty familiar with the java language/awt this is the first time i've needed to use this style of gui and i'm not sure exactly which classes i should use as the basis for the program. I would like a gui where a user can select one of a number...
5
5528
by: Sean McIlroy | last post by:
The subject line essentially says it all. Is there a way to do it? If so, where do I look to find out how? Any help will be much appreciated. Thx, STM
0
2591
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot simutate it. Can anyone help? Thanks ************************** previous post: Message 1 in thread
1
1311
by: Raja Gopal | last post by:
Hi , I have a peculiar probelm. I am trying to drag controls onto the canvas but I am unable to do so . Whatever control I double click it appears at the top left and doesnt move from there. Please help me. Thanks, Raja Gopal
9
3539
by: Mark | last post by:
hi... i have a program that opens a couple files and performs some operations on them. i wanted to modify my program so that if you drag and drop a file onto the exe via windows, it will open this file and use it instead. however, without even modifying my code first, if i drag and drop a file onto the exe it no longer opens/writes to...
0
2170
by: joey.powell | last post by:
I have a Windows Forms application where I need to be able to drag and then drop onto a datagridview control. I already have the code necessary to make the drag part work. I am having problems, however, when I attempt to drop onto a cell in the datagridview. So far I have done the following with the datagridview control... 1. I set...
0
908
by: bassi.carlo | last post by:
I need to develop a simple application to draw electronic board. In a left panel I have 10 icons representing different electronic devices (condenser, resistor, ...), I need to drag as many icons as I need in the right panel and connect them using lines. At the end I need to generate a text file who list all the devices used and how they are...
3
2507
by: Sizer | last post by:
I have several python utils that look at sys.argv to get a list of filenames to process and mangle the files in various ways. If I have a bar.bat file in Windows XP then I can just drag foo.avi onto bar.bat and bar.bat gets called with foo.avi as an argument, everyone's happy. But if I have a bar.py (or .pyw) and try to drag and drop foo.avi...
7
4696
by: Peter Pearson | last post by:
Tkinter makes it very easy to drag jpeg images around on a canvas, but I would like to have a "target" change color when the cursor dragging an image passes over it. I seem to be blocked by the fact that the callbacks that might tell the target that the mouse has entered it (<Enter>, <Any-Enter>, even <Motion>) aren't called if the mouse's...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.