IsHitTestVisible Property

Gets or sets whether the contained area of this UIElement can be used for hit-testing.

XAML
<object IsHitTestVisible="Boolean" .../>
Scripting
value = object.IsHitTestVisible
object.IsHitTestVisible = value

Property Value

Boolean

Determines whether the contained area of this UIElement can be used for hit-testing.

This property is read/write. The default value is true.

Remarks

If this property is set to false, the element ignores any input events, such as MouseLeftButtonUp.

Applies To

Canvas, Ellipse, Glyphs, Image, InkPresenter, Line, MediaElement, Path, Polygon, Polyline, Rectangle, Shape, TextBlock

See Also

Visibility