Version

SupportsSelection Method

Returns whether selection is supported for the specified mouse state.
Syntax
'Declaration
 
Protected Overridable Function SupportsSelection( _
   ByVal element As UIElement, _
   ByVal mouseDownEventArgs As MouseEventArgs _
) As Boolean
protected virtual bool SupportsSelection( 
   UIElement element,
   MouseEventArgs mouseDownEventArgs
)

Parameters

element
The UIElement returned from the ElementFromPoint method prior to the invocation of this method.
mouseDownEventArgs
A MouseEventArgs instance which describes the state of the mouse.

Return Value

A boolean which indicates whether selection is supported based on the state of the mouse.
Remarks

This method is called by the framework when a MouseDown is received by the associated control. The default implementation returns true if the left mouse button is pressed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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