title | description | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|
Set the FluentPalette ScrollBarsMode on a Single Control |
Replace the ThemeHelper.ScrollBarsMode attached property for a specific ScrollViewer control. |
Change ScrollBarsMode per Control in the Fluent Theme |
kb-common-change-fluentpalette-scrollbarsmode-per-control |
0 |
change,scrollbarsmode,themehelper |
1472946 |
kb |
Product | UI for WPF |
How to change the ThemeHelper.ScrollBarsMode attached property for a specific ScrollViewer control, this customizing the scrollbars in the Fluent theme.
To do this, you can add an implicit style in the Resources of the corresponding ScrollViewer control. The Style can have a single Setter changing the ThemeHelper.ScrollBarsMode attached property.
{{region kb-common-change-fluentpalette-scrollbarsmode-per-control-0}} <ScrollViewer.Resources> <Style TargetType="ScrollBar" BasedOn="{StaticResource ScrollBarStyle}"> </Style> </ScrollViewer.Resources> {{endregion}}