Class ScrollBar.ThemeMetrics
Contains themes colors and metrics for the scrollbar parts.
public class ScrollBar.ThemeMetrics : ScrollBar.CustomThemeMetrics
- Inheritance
-
ScrollBar.ThemeMetrics
Constructors
- ThemeMetrics()
Initializes a new instance of the ScrollBar.ThemeMetrics class.
Fields
- AllStatesDefault
Gets default array of the visual states which are initialized in the constructor with the default values.
- Arrow
Gets or sets scrollbar arrow colors in the different visual states.
- ArrowMargin
Gets or sets distance (in dips) between arrow button and arrow in the different visual states.
- ArrowsVisible
Gets or sets whether arrows are visible in the different visual states.
- Background
Gets or sets scrollbar background brushes in the different visual states.
- ButtonsVisible
Gets or sets whether buttons are visible in the different visual states.
- CornerBackground
Gets or sets corner background brushes in the different visual states.
- DownArrowImage
Gets or sets down arrow images in the different visual states.
- LeftArrowImage
Gets or sets left images in the different visual states.
- RightArrowImage
Gets or sets right arrow images in the different visual states.
- ThumbBackground
Gets or sets scrollbar thumb background brushes in the different visual states.
- ThumbBorder
Gets or sets scrollbar thumb border colors in the different visual states.
- ThumbMargin
Gets or sets distance (in dips) between thumb and scrollbar bounds in the different visual states.
- ThumbVisible
Gets or sets whether thumb is visible in the different visual states.
- UpArrowImage
Gets or sets up arrow images in the different visual states.
- UseArrowSizeForThumb
Gets or sets whether to use arrow width as the thumb width for the vertical scrollbar and arrow height as the thumb height for the horizontal scrollbar. Each visual state has its own setting.
Properties
- AllStates
Gets array of the visual states which are initialized in the constructor with the default values.
- MauiDarkTheme
Gets or sets 'Maui Dark' theme colors as ScrollBar.ThemeMetrics.
- MauiLightTheme
Gets or sets 'Maui Light' theme colors as ScrollBar.ThemeMetrics.
- VisualStudioDarkTheme
Gets or sets 'Visual Studio Dark' theme colors as ScrollBar.ThemeMetrics.
- VisualStudioLightTheme
Gets or sets 'Visual Studio Light' theme colors as ScrollBar.ThemeMetrics.
- WindowsDarkTheme
Gets or sets 'Windows Dark' theme colors as ScrollBar.ThemeMetrics.
- WindowsLightTheme
Gets or sets 'Windows Light' theme colors as ScrollBar.ThemeMetrics.
Methods
- Assign(ThemeMetrics)
Assigns properties of this object with the properties of another object.
- AssignTo(InteriorDrawable)
Initializes interior drawable with this theme colors and metrics.
- AssignTo(ScrollBarDrawable)
Initializes scrollbar drawable with this theme colors and metrics.
- Clone()
Creates clone of this object.
- GetTheme(KnownTheme, bool)
Returns theme colors for the specified
theme
andisDark
parameters.
Events
- ThemeInitialize
Occurs when this theme is assigned to the drawables.