scrollbarStyle property
final
The ScrollBar style being set on the WebView2 Environment.
The default value is EnvironmentScrollbarStyle.DEFAULT which specifies the default browser ScrollBar style.
The color-scheme CSS property needs to be set on the corresponding
page to allow ScrollBar to follow light or dark theme.
Please see color-scheme for how color-scheme can be set.
CSS styles that modify the ScrollBar applied on top of native ScrollBar styling that is selected with scrollbarStyle.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.2535.41+ (Official API - ICoreWebView2EnvironmentOptions8.put_ScrollBarStyle)
Implementation
final EnvironmentScrollbarStyle? scrollbarStyle;