Partager via


IXRUIElement::GetIsHitTestVisible (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsHitTestVisible(
    bool *pIsHitTestVisible
) = 0;

Parameters

  • pIsHitTestVisible
    [out] Pointer to a Boolean that is set to true if the contained area of this UI element can be used for hit-testing. Otherwise, it is set to false. The default value is true.

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::SetIsHitTestVisible