Version

CanSwapContainers Method

Returns true if the containers can be swapped
Syntax
'Declaration
 
Protected Friend Overridable Function CanSwapContainers( _
   ByVal dragItemContainer As FrameworkElement, _
   ByVal dragItemInfo As ItemInfoBase, _
   ByVal swapTargetContainer As FrameworkElement, _
   ByVal swapTargetItemInfo As ItemInfoBase _
) As Boolean
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