Docs / UI

Glossary: ScrollableContainerStyle

The members of ScrollableContainerStyle, in alphabetical order.

Color legend plain property method

The style class of ScrollableContainer: the properties a style can set on it. Part style ScrollBarsStyle (SliderStyle), used by both scroll bars (the vertical one with its two line colors swapped). Framework defaults: InheritState.FromChildren, ScrollBars Both, ScrollBarsThickness DefaultScrollBarsThickness (12), and a ScrollBarsStyle with DefaultScrollBarsTrackColor on both sides of a DefaultScrollBarsThumbColor thumb, and DefaultScrollBarsButtonsColor buttons.

A class deriving from BaseStyle. The styles page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

HorizontalScrollingValue 🠆

float · How far the content is scrolled sideways, from 0 (the left) to 1 (the right).

ScrollBars 🠆

ScrollBars · Which scroll bars may show: None, Vertical, Horizontal or Both (the default). A bar shows only while the content needs it.

ScrollBarsStyle 🠆

SliderStyle · The style of the scroll bars (see sliders). The vertical bar gets a copy with the colors of its two line halves swapped. Unless set, a light gray track on both sides of a gray thumb, as a scroll bar has, in the DefaultScrollBars colors of DefaultSettings.

ScrollBarsThickness 🠆

int · The width of a vertical bar and the height of a horizontal one, in units. The default is 12 (DefaultSettings.DefaultScrollBarsThickness).

VerticalScrollingValue 🠆

float · How far the content is scrolled down, from 0 (the top) to 1 (the bottom).

Methods

ScrollableContainerStyle()

ScrollableContainerStyle()

IsSet() 🠆

IsSet(string propertyName) · Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.

Parameter Type Description
propertyName string The name of a property of the style; nameof keeps it right.