How to get file/folder drag image overlay as in Windows Explorer for Vista/7? - image

I am C#, .NET WPF developer I'd like to have in my application drag and drop experience that looks like the one in Windows Explorer. In particular I'd like to have this nice looking image when dragging some file (I am creating file manager app).
I am not sure how to accomplish this, I guess there is some way to get from the shell this image so that I can include it in my dragging overlay but I am not sure how to do that. I notice that some software (eg. ImgBurn) does something like this but I am not sure how.
I am aware of this blog post with very useful info: https://learn.microsoft.com/en-us/archive/blogs/adamroot/shell-style-drag-and-drop-in-net-part-3
However I it doesn't provide example of how to get image overlay when dragging items in custom application.

Related

Reproduce Windows drag and drop with a custom image

I am looking for a way to reproduce this behaviour from the Windows drag&drop file system :
The cursor isn't visible with the default screencap feature of Windows, but of course it's on the right side file.
I'm looking to reproduce this right side image following the cursor in a program and setting the image myself. Having it be removed automatically on MOUSE_UP would be a big plus.
I'd like to use the Windows API directly so this process could work in the same way across languages, but if anyone has a better way I'm perfectly willing to hear it, of course.
Thanks.

Icon overlay in Finder for Icon Views other than Arrange By Name

I have icon overlays working in Finder using mac_inject through the drawImage: method of the class IKImageBrowserCell (I also have the various list views working).
When Finder is switched into Arrange By Kind (or anything other than Arrange By Name) then the icon overlays no longer work.
Has anybody figured out what class needs to be used for these other views? I've been experimenting for days with no luck.
If your question is still actual, there are perfect tool called liferay-nativity hosted in github. It's cross platform, open source tool for adding icon overlay. It works with Finder very well.
https://github.com/liferay/liferay-nativity

How to make or use a standard Image Viewer for WP7

I want to make an app that shows pictures. But I want to be able to zoom in and out with gestures. I fixed this by including a toolkit into my project. But my actual question is, can I use or is there a control that's already created for me to show pictures like the picture library of the WP7 phone itself. I thought there wasn't but the Facebook app has a similar way of showing the pictures. Did Facebook rewrite the whole thing or is there a control somewhere that someone made?
The SlideView control in Telerik's RadControls for Windows Phone sounds like what you're looking for.
Have you tried a MultiScaleImage control? It's designed to work with multiple layers, but if you only specify one layer, it might suit what you're trying to do.

How to achieve the screen using Graphical Editing Framework in eclipse

I want to achieve the GUI represents in the link provided http://www.eclipse.org/gef/.
I want that kind of view as drag and drop.
Is there any resource available to get that kind of screen. I tried the snippets available for Zest already. But my objective is to get the drag and drop of buttons to the editor window as a GUI Builder.
Check UML project for Eclipse, probably you need something like that...
link

Is there an easy way to recreate the WinForms layout experience at runtime for user positioning of controls

When laying out a WinForm in Visual Studio you get the ability to resize and align your controls very easily with drag handles and border alignment hints.
I'd like to do the same with a runtime control to enable the user to position an image on a page.
For example, if the user has a photo and they want to place it as a background on the desktop I'd like the control to help them move and size the photo thumbnail in a mini desktop visual.
I can do all of this, but my real question is, does anyone know of a way to inherit from the standard WinForms layout editor so that I can choose to use the nice docking, alignment hints and control resizing without coding it all again?
Thanks in advance
Ryan
I don't know about easy, but you can host the actual winforms designer in your own applications without too many problems.. See here.

Resources