Condividi tramite


IsHitTestVisible

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Property Value

Type: Boolean

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

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

Managed Equivalent

IsHitTestVisible

Remarks

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

Applies To

Border (Silverlight 2)

Canvas

Ellipse

Glyphs

Image

InkPresenter

Line

MediaElement

PasswordBox (Silverlight 2)

Path

Polygon

Polyline

Popup (Silverlight 2)

Rectangle

StackPanel (Silverlight 2)

TextBlock

TextBox (Silverlight 2)

See Also

Reference