Features in sourcecode, but not yet in the released version

Coordinator
Jul 2, 2009 at 1:54 PM

This is an overview of the new features that are included when you download the latest version from sourcecode instead of downloading the latest release.  If you need any of these features, I'd advise you to use the latest sourcecode drop :-)

 

  • DropTarget property DropBorderBrush added: new property, allowing you to change the brush of the border that's being drawn when hovering a drag source over a valid drop target.

 

  • DropTarget property DropBorderCornerRadius added: new property, allowing you to change the cornerradius of the border that's being drawn when hovering a drag source over a valid drop target.

 

  • DropTarget property DropBorderThickness added: new property, allowing you to change the thickness of the border that's being drawn when hovering a drag source over a valid drop target.

 

  • DragSource property AllowAnyDropTarget added: when set to true, any drop target will be valid for this drag source.  Useful in scenarios with dynamic droptarget generation (like droptargets in a listbox, for example).

 

  • DragSource property DropMode added: defines what happens when you drop a drag source on a drop target: you can choose to actually drop (and thus move) the drag source, or you can choose to let the drag source return to where it originated from.  Useful in scenarios where you want to drop an item somewhere and execute actions when it's dropped, but do not want it to move, for example: a colour swatches window where you can drag the colours onto an element, give the element the colour that's been dragged onto it, but put the colour element itself back onto the swatches window.

 

  • DragSource property ShowGhost (bool) has been replaced by GhostVisibility (Visibility), for greater consistency.

 

  • DropTarget property ShowGhost (bool) has been replaced by GhostVisibility (Visibility), for greater consistency.

 

  • Bugfix: extra checks to make sure all borders are removed when hovering is stopped - in some cases, the drop target would stay in "hovered"-mode even after the drag source had been dropped.

Coordinator
Jul 30, 2009 at 9:42 PM
Edited Jul 30, 2009 at 9:50 PM

Just added a feature to the source that significantly impacts performance - in a positive way:-)

DropTarget property AllowPositionSave (bool, default: false)

Determines wether or not the position of a droptarget should be saved.  Setting this option to true results in a significant increase in performance: in regular mode (when this property is false), droptarget positioning is calculated on the fly while dragging a dragsource.  When this is set to true, it's only calculated when the droptarget is loaded.  Do keep in mind that setting this to true will result in strange behaviour if the droptarget hasn't got a fixed position on screen (eg: when the droptarget itself can be moved around).  

However, you can recalculate this position by hand by calling the "RecalculatePosition"-method on the droptarget. This option is advised when you have lots and lots of droptargets on one screen - in other cases, it shouldn't be necessary.

 

Coordinator
Sep 7, 2009 at 6:23 PM

Added features to DragSource:

DragHandleMode:
This property determines how you can drag your dragsource around: by using a draghandle (a bar on top of your dragsource), or without one, meaning you can drag by clicking anywhere in the dragsource

ReturnAnimationDuration:
Determines the length of the animation shown when returning a DragSource to its original position (default: 0.2)

ReturnAnimationEasingFunction:
Determines the easing function of the animation shown when returning a DragSource to its original position (default: none, Silverlight 3 (or higher) required)

SwitchAnimationDuration:
Determines the length of the animation shown when switching 2 DragSources (default: 0.2)

SwitchAnimationEasingFunction:
Determines the easing function of the animation shown when switching 2 DragSources (default: none, Silverlight 3 (or higher) required)

Added features to DropTarget:

DropBorderBrush:
The brush for the drop border

DropBorderCornerRadius:
The cornerradius of the drop border

DropBorderThickness:
The thickness of the drop border

Other:

BugFix: sometimes, the animation used when switching 2 elements' position would let the elements go "underneath" other elements on the page.  This is now fixed, moving elements are always on top.

BugFix: when clicking an element to start dragging, you'd sometimes loose the ability to drag.  This shouldn't happen anymore.

Various other little improvements and bugfixes.

 

All of the above features/fixes will be included in the 2.0 release!