I want to have drag and drop reordering in a list box. Just like the home screen of the phone does. I.e long press will select the item, then we should be able to drag and drop it to another location. How can this be done? Are there already any controls available?
Environment is Windows Phone 7.1
Here is a WPF solution for two listboxes, bot from this you should be able to make minor modifications and apply it on your solution.
Related
I made a styled listbox in WPF, whenever someone clicks an element or presses an arrow key in my listbox, windows plays its "select sound".
This is not appropriate in this specific listbox, how can I disable it?
Or how can I disable all the "default sounds" / system sounds that my WPF application makes?
After a lot of searching and trying to reproduce it in a test application; I figured out that it was actually a Frame control that caused the sound.
I found an answer here Turn off navigation page sound in WPF Frame control
However that didn't work on all computers I tested it on.
I'm replacing the Frame with a Border now since I don't need navigation.
Try using itemscontrol. That doesn't provided select item functionality. If you require that then select sound should be there by default.
I am facing a weird issue while double click in windows 7 embedded OS.
Consider a listbox having several items and offers a double click functionality to open an item to show more details in separate window.
Here while performing the double click, one click was made on one item and another click on another item, finally the details window had opened for the second item.
the click is in normal speed only.
This is occurring in any application which has lists like "ListBox, ListView DataGrid".. any thing.
Is this a problem of Mouse, OS, WPF, winforms, C#, graphic driver ?
Please help.
im kind of confused, i used codes that enable you to drag and drop desktop icons/files/folders on windows forms, but how to show it inside the windows forms and the icon is still executable?
Most of the time GridControl is used to display the files.Its easy to display information about files in that way.But the best way to shows files depends on what do you want to do with the files.If you elaborate your problem then we can suggest.
I'm trying to implement drag and drop in C# and Java in order to allow the user to move visual elements around with the mouse but all I'm finding on Google are tutorials about data transfer and copy paste. What would be better search terms?
http://www.java-tips.org/java-se-tips/javax.swing/how-to-implement-drag-drop-functionality-in-your-applic.html
OR
http://www.javaworld.com/javaworld/jw-03-1999/jw-03-dragndrop.html?page=1
And search terms on google you can use: drag drop component GUI java
Bests
two Goodle searches to use, many useful results in first page of both.
"winforms drag and drop example"
"swing drag and drop example"
I'd like to achieve the following and was looking for a sample/tutorial but couldn't really find anything:
I have C# Winforms application, which has multiple Forms within the same process. I'd like to be able to drag & drop items within and between forms and would like to provide some custom painted visualization of the item being dragged.
For example, my IM app shows the effect that I'd like to achieve:
Thanks,
Tom
You actually physically have to drag a control with the mouse.
For example: http://blogs.msdn.com/b/adamroot/archive/2008/02/19/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx