XRVisibility (Compact 2013)

3/28/2014

This enumeration specifies the display state of an element.

Syntax

enum XRVisibility{
    XRVisibility_Visible = 0,
    XRVisibility_Collapsed = 1,
};

Members

  • XRVisibility_Visible
    Display the UI element.
  • XRVisibility_Collapsed
    Do not display the UI element, and do not reserve space for it in the layout.

Remarks

Elements that have an XRVisibility value of XRVisibility_Collapsed do not occupy any layout space. By default, elements have a value of XRVisibility_Visible.

To hide an element while still allowing it to occupy layout space, you can use the IXRUIElement::SetOpacity method.

.NET Framework Equivalent

System.Windows.Visibility

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRUIElement::GetVisibility
IXRUIElement::SetVisibility
IXRScrollViewer::GetComputedHorizontalScrollBarVisibility
IXRScrollViewer::GetComputedVerticalScrollBarVisibility