Version

GetMouseActionPoint(FrameworkElement,IGRectRegion,Double,Double,Boolean) Method

Overrides the base GetMouseActionPoint method to check if the Visual is connected to a Presentation Source and only then get the point of mouse action
Syntax
'Declaration
 
Protected Overloads Overrides Function GetMouseActionPoint( _
   ByVal fwElem As System.Windows.FrameworkElement, _
   ByVal rectRegion As IGRectRegion, _
   ByVal double1 As System.Double, _
   ByVal double2 As System.Double, _
   ByVal bValidate As System.Boolean _
) As System.Windows.Point
protected override System.Windows.Point GetMouseActionPoint( 
   System.Windows.FrameworkElement fwElem,
   IGRectRegion rectRegion,
   System.double double1,
   System.double double2,
   System.bool bValidate
)
protected: System.Windows.Point GetMouseActionPoint( 
   System.Windows.FrameworkElement* fwElem,
   IGRectRegion rectRegion,
   System.double double1,
   System.double double2,
   System.bool bValidate
) override 

Parameters

fwElem
The frameowrk element on which the mouse action has occurred
rectRegion
IGRectRegion of mouse action
double1
Offset from the left of the Rect region
double2
Offset from the top of the Rect region
bValidate
Validates if the point is inside the visible region if true, else ignores

Return Value

Point of Mouse action obtained from the Rect region and their offsets(if any)
Requirements

Target Platforms: 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