How to set the ScrollBarMode in the SfSkinManager for WPF Controls?
You can set the ScrollBarMode in the WPF SfSkinManager. It allows you to apply various scrollbar styles like Windows 11 compact scrollbar, for both Syncfusion and Framework controls using the ScrollBarMode property.
Note: By default, compact mode is enabled in Fluent and Windows11 theme.
The ScrollBarMode enum contains the following values:
- Default
- Compact
public partial class MainWindow : ChromelessWindow
{
public MainWindow()
{
SfSkinManager.SetTheme(this, new Theme() { ThemeName = "Windows11Light" });
SkinManagerHelper.SetScrollBarMode(this, ScrollBarMode.Compact);
InitializeComponent();
}
}
View GitHub Sample link for ScrollBarMode
Conclusion
I hope you enjoyed learning about how to set the ScrollBarMode in the SfSkinManager for WPF Controls
You can refer to our WPF SkinManager page to learn about its other groundbreaking feature representations. You can also explore our WPF SkinManager to understand how to present and manipulate data.
For current customers, you can check out our components on the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to explore our other components.
If you have any queries or require clarifications, please let us know in the comments below. You can also contact us through our support forums, Direct-Trac or feedback portal, or the feedback portal. We are always happy to assist you!