drag-and-drop

How to enable dragging between two react-native-swiper components?

戏子无情 提交于 2019-12-11 15:02:50
问题 I am trying to enable drag-and-drop between two react-native-swiper components. I used Animated.Text and PanResponder to drag the text in bottom one react-native-swiper and it is working corretly until when the dragging is moved over the above one react-native-swiper componenent. The dragged text is unvisible when dragging over the other react-native-swiper. Could anyone explain what is happening and how to fix the behaviour? Here is the simplefied code to reproduce the behaviour: import

how drag and drop component as first word

[亡魂溺海] 提交于 2019-12-11 14:16:19
问题 I'm using jQuery UI draggable component to add to content editable .This code works to find and I have a little issue. The problem is I cannot drag and drop draggable component as first word, How can I solve this? Please help me to solve this. Note : the current functionlity cannot be break. My code as follows: $(function() { function textWrapper(str, sp, btn) { if (sp == undefined) { sp = [0, 0]; } var txt = ""; if (btn) { txt = "<span class='w b'>" + str + "</span>"; } else { txt = "<span

Jquery Draggable and Droppable, dropping full div content

谁说我不能喝 提交于 2019-12-11 13:49:12
问题 I have a div: <div> Hello there <img src="cnnc.png" /> </div> <div id="cart"> <div class="placeholder">drop here</div> </div> and I want to be able to drag it into my droppable box and append all the content of that div to my droppable box. The problem is that my droppable code only appends text to the box, how can I change it to append all content: $("#cart").droppable({ activeClass: "ui-state-default", hoverClass: "ui-state-hover", accept: ":not(.ui-sortable-helper)", drop: function(event,

Caliburn.Micro Drag & Drop of a File in a WPF

耗尽温柔 提交于 2019-12-11 13:40:27
问题 I Have create and desktop application with Caliburn.Micro (2.0.1) and now I need to add a drag&drop behavior, the user will drag a file from the Windows Explorer and I need to get the path of it, however I´m searching for 2 days now and I don´t found any example or explanation of how to add a Drag&Drop behavior for the Caliburn.Micro. I found a question about it (Drag and Drop Files into WPF with Caliburn Micro Framework) but that don´t workout. I have tried a lot of different maners but now

How make the same animation like UITableView reorder of cells?

和自甴很熟 提交于 2019-12-11 12:56:05
问题 I have a drag&drop operation between 2 UITableViews. The cell could be reordered in the source TableView, or move to another TableView. Because I need to move the cell between the two, I can't use the default reorder support. However, I want to make a similar animation like when the cell is moving around and the cell below them slide out. Any hint in how do this animation? UPDATE: You can see what exactly I'm looking for in the pulse app. 回答1: You can always use deleteRowsAtIndexPaths

dragging multiple list items simultaneously

守給你的承諾、 提交于 2019-12-11 12:52:59
问题 I have two lists connected with jQuery UI's sortable , allowing to drag items from one list to another. http://jsbin.com/uraga3 Is there a simple way to drag several items at the same time - e.g. to move items #3, #4 and #7 from left to right? 回答1: Not in the plugin. You can write some custom code to add items to a selection and then move multiple at once. Like: $( "li" ).bind( "click", function() { $(this).toggleClass('sorting-selected'); }); $( "ul" ).bind( "sortreceive", function(event, ui

Drag and Drop with WPF ListBox

自作多情 提交于 2019-12-11 12:48:22
问题 I have two ListBox in WPF application. One is the source second is the destination. I took the help from the article http://dotnetslackers.com/ADO_NET/re-191632_Generic_WPF_Drag_and_Drop_Adorner.aspx Now I have managed to perform the drag and drop. Now I have one feature to implement in which if we drop any item over an existing one, it will replace the existing item with the current dragged item. Please guide. 回答1: You may want to look at Gong Solutions Drag/Drop for WPF, the guide it uses

Drag and drop files into Windows store app

让人想犯罪 __ 提交于 2019-12-11 12:37:02
问题 I am trying to make a simple Windows store app where one of the basic functionalities are that you can just drop files into the app. Or at least that was the idea. I can't find any way to allow dropping files into my app. I have set AllowDrop on my elements but it won't listen when I drop files on the app (using split screen). Is it possible to, say, drop a text file unto an open metro style app in Windows 8 (or 8.1) and how does one handle it in C#? 来源: https://stackoverflow.com/questions

Customize the look of the Silverlight Control Toolkit drag / drop

戏子无情 提交于 2019-12-11 12:35:47
问题 Is there a way to override the template of or restyle the carrot (and even completely remove as I need in one case)? The carrot being the position marker where the drop will occur. I'd also like the ability to change the icons used during dragging - I've seen an infinity symbol, an arrow, and a strike-through circle, for which all I'd like to use custom icons. Unfortunately, I'm also confused as to when a given icon displays itself. 回答1: Just reviewing the docs it would appear that the

Allow DragDrop anywhere in a form

心已入冬 提交于 2019-12-11 12:28:59
问题 Is there a way to allow Drag and Drop anywhere in a form full of controls? The idea is to allow user to drag a file anywhere in a form in order to "load" it. I will not need any other DragDrop behavior but this. By setting AllowDrop=True to the form only, I get DragEnter events but not DragDrop ones. An idea would be to make a topmost panel visible on DragEnter and handle DragDrop events there, but I wonder if I miss something obvious here since I have little experience in the field. Another