Partager via


XRScrollBarVisibility (Windows Embedded CE 6.0)

1/6/2010

This enumeration contains values that specify the visibility of a scrollbar that is inside a scroll viewer or text box.

Syntax

enum XRScrollBarVisibility
{
        XRScrollBarVisibility_Disabled = 0,
        XRScrollBarVisibility_Auto,
        XRScrollBarVisibility_Hidden,
        XRScrollBarVisibility_Visible
};

Members

  • XRScrollBarVisibility_Disabled
    An IXRScrollBar does not appear, even when the viewport cannot display all of the content. The dimension of the content is set to the corresponding dimension of the parent IXRScrollViewer control. For a horizontal IXRScrollBar, the width of the content is set to the viewport-width of the IXRScrollViewer. For a vertical IXRScrollBar, the height of the content is set to the viewport height of the IXRScrollViewer.
  • XRScrollBarVisibility_Auto
    An IXRScrollBar appears and the dimension of the IXRScrollViewer is applied to the content when the viewport cannot display all of the content. For a horizontal IXRScrollBar, the width of the content is set to the viewport-width of the IXRScrollViewer. For a vertical IXRScrollBar, the height of the content is set to the viewport-height of the IXRScrollViewer.
  • XRScrollBarVisibility_Hidden
    An IXRScrollBar does not appear, even when the viewport cannot display all of the content. The dimension of the IXRScrollViewer is not applied to the content.
  • XRScrollBarVisibility_Visible
    An IXRScrollBar always appears. The dimension of the IXRScrollViewer is applied to the content. For a horizontal IXRScrollBar, the width of the content is set to the viewport-width of the IXRScrollViewer. For a vertical IXRScrollBar, the height of the content is set to the viewport-height of the IXRScrollViewer.

Remarks

You can use this enumeration to set the horizontal-scrollbar visibility and vertical-scrollbar visibility characteristics for a scroll viewer or text box.

The member values of this enumeration specify IXRScrollBar visibility in a given direction. These member values also specify whether the corresponding IXRScrollViewer dimension is applied to its enclosed content.

After you call IXRFrameworkElement::SetWidth or IXRFrameworkElement::SetHeight on the IXRScrollViewer, these values help determine the viewport size for the content.

.NET Framework Equivalent

System.Windows.Controls.ScrollBarVisibility

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Silverlight for Windows Embedded Enumerations