Share via


IXRUIElement::SetIsHitTestVisible (Compact 2013)

3/28/2014

This method determines whether the contained area of this UI element can return true values for hit testing

Syntax

virtual HRESULT STDMETHODCALLTYPE SetIsHitTestVisible(
    bool IsHitTestVisible
) = 0;

Parameters

  • IsHitTestVisible
    [in] Boolean that indicates whether the contained area of this UI element can be used for hit testing. To support hit testing, set this value to true. Otherwise, set it to false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If pIsHitTestVisible is false, the UI element ignores any input events, such as MouseLeftButtonDown, and cannot receive UI focus.

.NET Framework Equivalent

System.Windows.UIElement.IsHitTestVisible

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::GetIsHitTestVisible