menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NoHitTestDrawingVisual - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class NoHitTestDrawingVisual

    NoHitTestDrawingVisual is a visual object that can be used to render vector graphics on the screen. The content is persisted by the system. Use this derived object instead of the base class DrawingVisual when you do not want the object to participate in hit-testing, as for example when you want to draw a solid background rectangle over selected cells in a grid but still want the hit-test to be passed down to the underlying cells when the user moves the mouse over the rectangle.

    Inheritance
    System.Object
    NoHitTestDrawingVisual
    Namespace: Syncfusion.Windows.Controls.Cells
    Assembly: Syncfusion.GridCommon.WPF.dll
    Syntax
    public class NoHitTestDrawingVisual : DrawingVisual

    Constructors

    NoHitTestDrawingVisual()

    Declaration
    public NoHitTestDrawingVisual()

    Methods

    HitTestCore(GeometryHitTestParameters)

    Determines whether a geometry value is within the bounds of the visual object.

    Declaration
    protected override GeometryHitTestResult HitTestCore(GeometryHitTestParameters hitTestParameters)
    Parameters
    Type Name Description
    System.Windows.Media.GeometryHitTestParameters hitTestParameters

    A value of type System.Windows.Media.GeometryHitTestParameters that specifies the System.Windows.Media.Geometry to hit test against.

    Returns
    Type Description
    System.Windows.Media.GeometryHitTestResult

    A value of type System.Windows.Media.GeometryHitTestResult.

    HitTestCore(PointHitTestParameters)

    Determines whether a point coordinate value is within the bounds of the System.Windows.Media.DrawingVisual object.

    Declaration
    protected override HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
    Parameters
    Type Name Description
    System.Windows.Media.PointHitTestParameters hitTestParameters

    A value of type System.Windows.Media.PointHitTestParameters that specifies the System.Windows.Point to hit test against.

    Returns
    Type Description
    System.Windows.Media.HitTestResult

    A value of type System.Windows.Media.HitTestResult, representing the System.Windows.Media.Visual returned from a hit test.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved