Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UIElement.IsHitTestVisible Property

Definition

Namespace:
Microsoft.UI.Xaml

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets whether the contained area of this UIElement can return true values for 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 = uIElement.isHitTestVisible;
uIElement.isHitTestVisible = boolean;
Public Property IsHitTestVisible As Boolean
<uiElement IsHitTestVisible="bool"/>

Property Value

Boolean

bool

true if the contained area of this UIElement can be used for hit testing; otherwise, false. The default is true.

Applies to


Feedback

Was this page helpful?