Compartilhar via


IXRUIElement::GetVisibility (Compact 2013)

3/28/2014

This method retrieves a value that indicates whether this UI element is visible. Elements that are not visible cannot be rendered on-screen.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetVisibility(
    XRVisibility* pVisibility
) = 0;

Parameters

  • pVisibility
    [out] Pointer to an XRVisibility structure that describes the display state of this UI element.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When pVisibility is false, this UI element does not participate in input events, is not in a tab sequence (and cannot receive the UI focus), and is excluded during hit testing.

Note

The value that is provided in IXRUIElement::SetIsHitTestVisible is ignored when a UI element is not visible.

.NET Framework Equivalent

System.Windows.UIElement.Visibility

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement
IXRUIElement::SetVisibility