Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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

Community Additions

Show:
© 2015 Microsoft