zzz6519003 / gong-wpf-dragdrop

Automatically exported from code.google.com/p/gong-wpf-dragdrop
1 stars 0 forks source link

Additional nice Features #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi 

Your Library is great! 

I suggest some additional features:

1. Partial Trust support

The call to System.Windows.DragDrop.DoDragDrop() causes an exception when 
used in partial trust (e.g. with XBAP). That means that we have to use 
another mechanism for drag&drop. A solution for that can be found here:
http://blogs.claritycon.com/blogs/lee_roth/archive/2009/04/06/wpf-drag-and-
drop-between-itemscontrols.aspx

2. Jump-Back Animation

The soultion mentioned above 
(http://blogs.claritycon.com/blogs/lee_roth/archive/2009/04/06/wpf-drag-
and-drop-between-itemscontrols.aspx) shows a nice effect: the 
dragAdorner "jumps" back to the origin if drag-drop operation fails.

3. Designed as Behavior

With Expression Blend 3 a new kind of customizable code arrived: Behaviors.
Changing the actual frame into a behavior might simplify usage of the code 
out of designers. Example: 
http://codeblitz.wordpress.com/2009/06/26/wpf-itemscontrol-drag-drop-
behavior/

What do you think about this extensions?

Best Regards,

Linus

Original issue reported on code.google.com by suni...@gmx.ch on 18 Feb 2010 at 10:47

GoogleCodeExporter commented 9 years ago
1. Hmm, I wasn't aware of that. Do you think there would be a way to 
transparently drop back 
to the alternative method of dragging if DoDragDrop isn't present? As I 
understand it we need 
to use DoDragDrop when possible to allow inter-application d'n'd.

2. That's certainly something worth considering. Personally I'm not 
particularly interested in 
the effect, though.

3. I don't actually have a copy of Blend. I've heard mention of Behaviours but 
I've not looked 
into them in detail. Are they only usable in Blend? Supported in WPF4?

Apologies I don't have time to look into your suggestions in any more detail - 
I'm rather busy 
at the moment. I'm able to discuss design though if you feel inclined to do any 
of the coding 
;)

Original comment by gro...@gmail.com on 24 Feb 2010 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by gro...@gmail.com on 4 May 2010 at 4:46