Bewerken

Share via


UIElement.HitTestCore Method

Definition

Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior.

Overloads

HitTestCore(GeometryHitTestParameters)

Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

HitTestCore(PointHitTestParameters)

Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

HitTestCore(GeometryHitTestParameters)

Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

protected:
 override System::Windows::Media::GeometryHitTestResult ^ HitTestCore(System::Windows::Media::GeometryHitTestParameters ^ hitTestParameters);
protected override System.Windows.Media.GeometryHitTestResult HitTestCore (System.Windows.Media.GeometryHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.GeometryHitTestParameters -> System.Windows.Media.GeometryHitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As GeometryHitTestParameters) As GeometryHitTestResult

Parameters

hitTestParameters
GeometryHitTestParameters

Describes the hit test to perform, including the initial hit point.

Returns

Results of the test, including the evaluated geometry.

Remarks

See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. Note that several specific controls (TextBlock, for example) do have distinct implementations, which override this one.

This method is not intended to be called from your application code. This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

Applies to

HitTestCore(PointHitTestParameters)

Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

protected:
 override System::Windows::Media::HitTestResult ^ HitTestCore(System::Windows::Media::PointHitTestParameters ^ hitTestParameters);
protected override System.Windows.Media.HitTestResult HitTestCore (System.Windows.Media.PointHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.PointHitTestParameters -> System.Windows.Media.HitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As PointHitTestParameters) As HitTestResult

Parameters

hitTestParameters
PointHitTestParameters

Describes the hit test to perform, including the initial hit point.

Returns

Results of the test, including the evaluated point.

Remarks

See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. Note that several specific controls (TextBlock, for example) do have distinct implementations, which override HitTestCore as defined by UIElement.

This method is not intended to be called from your application code. This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

Applies to