UIElement.IsHitTestVisible Property
Definition
Gets or sets whether the contained area of this UIElement can return true values for hit testing.
Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.IsHitTestVisible.
public:
property bool IsHitTestVisible { bool get(); void set(bool value); };
bool IsHitTestVisible();
void IsHitTestVisible(bool value);
public bool IsHitTestVisible { get; set; }
var boolean = uIElement.isHitTestVisible;
uIElement.isHitTestVisible = boolean;
Public Property IsHitTestVisible As Boolean
<uiElement IsHitTestVisible="bool"/>
Property Value
true if the contained area of this UIElement can be used for hit testing; otherwise, false. The default is true.