开发者

Drag and Drop DropEffect style

开发者 https://www.devze.com 2023-02-20 23:17 出处:网络
Is there an easy way to change the regular drag and drop style of a ListBoxI开发者_如何转开发tem to make it look different? I\'m talking about the style that shows the \"Don\'t\" sign, the + and the l

Is there an easy way to change the regular drag and drop style of a ListBoxI开发者_如何转开发tem to make it look different? I'm talking about the style that shows the "Don't" sign, the + and the little rectangle in the cursor when you drag over another control.

The style used by default is too 'ugly' and simple, we would like to show some information when a drop is about to occur. How can this be achieved?

Thanks!

EDIT:

BTW. I already tried this solutionShell Style Drag and Drop, we don't want the drag and drop to interact with the OS, only within the application.

I also tried setting an Adorner on top of the cursor. The Adorner renders certain visuals that move with the cursor, but that only works if we don't call the DragDrop.DoDragDrop method. The Adorner stops moving right after we call that mehod.


This example uses an Adorner to show a preview of the ListBoxItem and calls DragDrop.DoDragDrop. Is that the one you tried?

0

精彩评论

暂无评论...
验证码 换一张
取 消