drag-and-drop

Creating a drag and drop application in ASP.NET 3.5

懵懂的女人 提交于 2019-12-11 12:18:35
问题 I need to make a client able to drag and drop images into category-folders in an ASP.NET 3.5 web-app. I was hoping that an option existed, that was almost as easy to use as the Reorderlist from Ajax Control Toolkit, and where I did not have to look into JQuery or similar handcoding. What are your recommendations? Similar questions have been asked before, like this 6 months ago...: ASP.net AJAX Drag/Drop? where MooTools is recommended, but 6 months is a long time in the ASP.NET/Ajax world, so

can't see new framelayout shadow while dragging

僤鯓⒐⒋嵵緔 提交于 2019-12-11 11:53:01
问题 i am a beginner android developer and i try to make a small solitaire game. to do the stacks of cards i use a Framelayout and inside each imageview represents a card. now for the drag and drop of the card i succeeded implementing the android "drag and drop" and it works for one card but if i want to drag more than one view i thought of making a new Framelayout which will hold all of the imageviews from where i pressed and onward (like if i pressed the 8 card it will have 8,7,6 and so forth)

Dropping an item on a QComboBox?

ぃ、小莉子 提交于 2019-12-11 11:45:42
问题 Perhaps I am looking in the wrong place, or maybe I don't quite understand the concept fully; but I'm trying to find a working example where I can drop a text file on a QComboBox , and it will trigger a drop event that I can handle. I looking through the documentation, but there isn't a whole lot of information on the subject. I have also searched around, but I haven't really found anything either. If I'm just not looking in the right place, please feel free to point me in the right direction

How do I disable drag and drop on NSTextView?

左心房为你撑大大i 提交于 2019-12-11 11:38:10
问题 I have a NSWindowController that contains several NSViewControllers . I would like to universally accept drag and drop events with the NSWindowController class and not be intercepted by other views such as NSTextView (contained in a NSViewController ) How can I tell NSTextView to ignore the drag & drop event? 回答1: I found out that there were two things needed to skip past NSTextView 's interception of the drag and drop event. In the NSViewController containing your NSTextView : - (void

Drag and Drop images between numerous picture boxes

删除回忆录丶 提交于 2019-12-11 11:37:26
问题 I'm working on a form that has ten picture boxes. Children should be able to drag a picture from one picture box to any of the others. I read an excellent Microsoft article that explained the steps in setting up a drag/drop between two picture boxes. There were five sub routines to drag and drop one way into a second picture box. My concern is that if the form has ten picture boxes, and the user can drag/drop between any of the ten boxes, that is a lot of code and and a lot of sub routines.

Silverlight 4: why items are not moveable?

大城市里の小女人 提交于 2019-12-11 11:34:44
问题 There is a "field" on which some items are draggable: Here is a XAML code: <Canvas Height="180" Width="169" > <Image Canvas.Left="0" Canvas.Top="0" Height="180" Width="149" Source="../Picts/field.png" /> <Pages:FieldItem x:Name="Item2" Canvas.Left="129" Canvas.Top="34" MouseLeftButtonDown="Item1_OnMouseLeftButtonDown" MouseLeftButtonUp="Item1_MouseLeftButtonUp" MouseMove="Item1_MouseMove" /> </Canvas> And code-behind: private bool bIsCaptured = false; double mouseVerticalPosition; double

WPF drag and drop on a button

为君一笑 提交于 2019-12-11 11:24:03
问题 I'm writing a WPF application that has grids of buttons and I want to allow the user to drag and drop buttons between grids, possibly between different instances of the application. I've tried doing this by adding a handler to the PreviewMouseMove event on the button and then calling DoDragDrop if the left mouse button is down, but when I drag and drop the button it always ends up calling DoDragDrop twice and the drop event handler twice. Does anyone know why this happens and how to prevent

WPF tab control drag 'n drop: bring tab in front behavior

萝らか妹 提交于 2019-12-11 11:16:34
问题 I would like to implement drag 'n drop with a tabcontrol in a way that dragging an item to tag strip brings it to front. Which is the most efficient and non obtrusive way? Thank you 回答1: private void TabControl_DragEnter(object sender, DragEventArgs e) { TabItem item = e.Source as TabItem; TabControl tabControl = sender as TabControl; if (item != null && tabControl != null) { if (tabControl.SelectedItem != item) tabControl.SelectedItem = item; } } 来源: https://stackoverflow.com/questions

AgGrid custom html on drag

社会主义新天地 提交于 2019-12-11 11:11:47
问题 I'm jsut looking into changing the drag hover of the aggrid component. i cant find much on it... Anyone knows how to change the styles of the row in drag mode? My goal is to have a different animation (full row) like material UI/UX https://material.io/design/components/lists.html#behavior 回答1: So, actually, there is no possibility for now to modify 'ghost' template, you can try to explore deeper than I did, here is an entry point: ag-grid\src\ts\dragAndDrop\dragAndDropService.ts and

I need a drag and drop control for C# winforms

痞子三分冷 提交于 2019-12-11 11:01:55
问题 I'm looking for a control for C# that can contain other controls, takes care of layout and allows drag and drop rearranging of the layout order. Simularly to the way the iphone/ipod allows you to rearrange apps. Thanks. 回答1: Using something like DockPanelSuite as a basis might be a good starting point. 回答2: I think you can implement your own easily, using FlowLayoutPanel and MouseUp, MouseDown, MouseMove events of the controls where you change the Location property approximately and