Quantcast
Channel: Display Thumbnail Images
Viewing all articles
Browse latest Browse all 5

Display Thumbnail Images

$
0
0
Hello. I am trying to create an image viewer in WPF that will allow me to display all images from a specified folder, in thumbnail size. I then want to be able to drag and drop those images anywhere on the canvas.

I have found some good resources for drag and drop
 http://www.codeproject.com/KB/WPF/DraggingElementsInCanvas.aspx?fid=335963&fr=1#xx0xx

and a also some good resources for creating thumbnail images 
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/6fa5f3bf-f274-4d8e-8ba7-7788fdc1e2fd/

In addition to those, I found a good post on modifying a list control to behave more like a canvas
http://cromwellhaus.com/blogs/ryanc/archive/2008/11/03/the-wpf-mindset.aspx. (This one seemed like what I was looking for, but I could not figure out how to implement drag/drop on the individual list items.)

I have already been able to create an observable collection and populate a databound list view with those images. Now I am trying to connect the dots.

My question is what is the best way to approach the image display? Do I programmatically create new thumbnail image instances on a canvas for each image or is it better (or even possible) to databind a control, like a listview, to a collection and somehow modify the control to allow me to drag and drop each list item anywhere on the screen. The whole idea is to have a user experience as though you were sitting at a table with several photos spread out in front of you. You could rearrange the individual photos however you want on the table. This is why I am not just using a default list box. Thanks for any help on this.  

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images