Version

GetMousedDepObject Method

Returns the DependencyObject on which the mouse is clicked
Syntax
'Declaration
 
Protected Overridable Function GetMousedDepObject( _
   ByVal sourceElement As System.Windows.FrameworkElement, _
   Optional ByVal bGetOriginalSource As System.Boolean _
) As System.Windows.DependencyObject
protected virtual System.Windows.DependencyObject GetMousedDepObject( 
   System.Windows.FrameworkElement sourceElement,
   System.bool bGetOriginalSource
)
protected: virtual System.Windows.DependencyObject* GetMousedDepObject( 
   System.Windows.FrameworkElement* sourceElement,
   System.bool bGetOriginalSource
) 

Parameters

sourceElement
The FrameworkElement relative to which the moused object needs to be determined
bGetOriginalSource
Optional boolean when true returns the original source. When false tries to return the VisualHit first and only if VisualHit is null, returns the original source
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