drag-and-drop

Drag Drop Row behavior on WPF DataGrid

有些话、适合烂在心里 提交于 2019-12-21 20:45:22
问题 I am trying to make an attached behavior to reorder rows bby doing Drag & Drop I found some solution (On Stackoverflow and by googling) and using them i am trying to make the behavior... I took the example from Hordcodenet website (i dont have the link now) Code public static class DragDropRowBehavior { private static DataGrid dataGrid; private static Popup popup; private static bool enable; private static object draggedItem; public static object DraggedItem { get { return DragDropRowBehavior

Javafx drag and drop TabPane

≯℡__Kan透↙ 提交于 2019-12-21 20:04:50
问题 I have (in a JavaFx app) a tabpane with different tabs. I want to implement a drag and drop functionality to drag a tab outside the stage. So that it can generate a new window (like in Google Chrome). Thanks for the help. 回答1: You should check the solution by Tom Schindl shown at his Blog 回答2: Here is an aproach, its just the part of taking the content out into a new window, but its a start. private Tab createTab(String text) { final Tab tab = new Tab(); final Label label = new Label(text);

Implementing Drag and Drop Functionality WebBrowser Control Winforms C#

牧云@^-^@ 提交于 2019-12-21 19:39:46
问题 I need to capture drag and Drop Events of WebBrowser Control in WinForm C#. Is there any way ? 回答1: My Workarond: use a boolean member variable to detect if you call navigate from inside code or navigating is called from ouside code. Implement the "Navigating" (BeforeNavigating) event and check if it was a call from outside. Example: call navigate from inside: private void NavigateLocal(string htmlFileName) { this.localNavigate = true; this.webBrowser.Navigate(htmlFileName); } event method:

Android: RecyclerView, Drag-and-Drop (External View), and Auto-Scroll?

北城余情 提交于 2019-12-21 18:43:18
问题 Here is an image of what I am trying to do: Image: Drag-and-drop app with a list and an item outside the list I am trying to make an explorer-like file browser, with drag-and-drop to move the files, but I run into a problem. I know there is a special RecyclerView drag-and-drop interface (there is this, for example), but I haven't been able to find examples that tell how to move things between the inside and outside of the list. Here is my XML: <?xml version="1.0" encoding="utf-8"?>

In python, how do I drag and drop 1 or more files onto my script as arguments with absolute path? (for windows, linux, and mac)

故事扮演 提交于 2019-12-21 17:56:14
问题 I am writing a simple Python script with no GUI. I want to be able to drag and drop multiple files onto my python script and have access to their absolute paths inside of the script. How do I do this in Mac, Linux, and windows? For times sake, just Mac will be fine for now. I've googled this question and only found one related one but it was too confusing. I am currently running Mac OS X Snow Leopard. Any help is much appreciated. Thanks! 回答1: For OS X, the most straightforward way is to have

Transfer Items between Views with Drag-and-Drop in Eclipse RCP?

心已入冬 提交于 2019-12-21 17:47:00
问题 I have 2 views in my application. In one of the views I can see a TreeStructure containing custom defined elements (such as MDocument, MVersion...). I would like to be able to drag items of type MVersion from my view to the other one but I don't know how to declare the transfer types or to check if the item selected is a supported type. Any ideas? 回答1: The easiest way is to use LocalSelectionTransfer. Once you have added drag/drop support to your viewers... You set the ISelection that is

Swing drag and drop [closed]

安稳与你 提交于 2019-12-21 17:38:47
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I would like to implement a game board in swing (needs to be a table, though about either jtable or gridlayout etc ...) where I will be able to drag and drop a picture on to this game board and all the cells that the picture fell on will get a notification that they were chosen.

Shiny widget to change the order of elements in a vector

坚强是说给别人听的谎言 提交于 2019-12-21 17:29:23
问题 On quite a few websites you have a drag and drop interface to change the order of elements in a list. I am looking for something similar in Shiny. I want the user to be able to drag and drop elements of a list to change the priority by changing the order. Right now I have a solution that abuses selectizeInput() . This works, but it quickly becomes cumbersome when the list of choices becomes larger. An illustration: library(shiny) shinyApp( ui = shinyUI({ fluidPage( title = "Example for

WPF 4 multi-touch drag and drop

坚强是说给别人听的谎言 提交于 2019-12-21 17:19:16
问题 I have a WPF 4 application where I have implemented Drag and Drop using the standard DragDrop.DoDragDrop approach, but Im doing it using touch instead of Mouse events. My XAML for my Grid (that Im dragging) is as follows: <Grid x:Name="LayoutRoot" ManipulationStarting="ManipulationStarting" ManipulationDelta="ManipulationDelta" ManipulationCompleted="ManipulationCompleted" IsManipulationEnabled="True"> <!-- children in here --> </Grid> Now the code behind is like this: private void

UWP ListView drag behavior for touch

帅比萌擦擦* 提交于 2019-12-21 14:31:11
问题 When using touch to trigger a drag and drop action for a ListView item, it would appear that the behavior has changed between WinRT (Windows 8/8.1) and UWP (Windows 10) apps. In WinRT, "tearing" an item to the left or right would cause it to get detached, initiating the drag behavior. In UWP, the user has to tap and hold an item for a short while, after which moving it initiates the drag action. My question is: is there a way to revert to/implement the old WinRT-style behavior? The new way is