Version 24.2 (latest)

CanSwapContainers Method

Returns true if the containers can be swapped
Syntax
protected internal virtual bool CanSwapContainers( 
   FrameworkElement dragItemContainer,
   ItemInfoBase dragItemInfo,
   FrameworkElement swapTargetContainer,
   ItemInfoBase swapTargetItemInfo
)

Parameters

dragItemContainer
The container of the item to be dragged.
dragItemInfo
The associated drag item's info
swapTargetContainer
The container that is the targetof the swap.
swapTargetItemInfo
he associated swap target item's info

Return Value

The default implementaion returns true if both are maximizd or both are not maximized.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also