Share via


Visual.IsHitTestVisible Property

Definition

Gets or sets a value that indicates whether the visual sub-tree rooted at this visual participates in hit testing.

public:
 property bool IsHitTestVisible { bool get(); void set(bool value); };
bool IsHitTestVisible();

void IsHitTestVisible(bool value);
public bool IsHitTestVisible { get; set; }
var boolean = visual.isHitTestVisible;
visual.isHitTestVisible = boolean;
Public Property IsHitTestVisible As Boolean

Property Value

Boolean

bool

true if the visual sub-tree rooted at this visual participates in hit testing; otherwise, false. The default is true.

Applies to