The scrollbar in the SfRichtextboxAdv is shown as a black box with the windows 11 theme:
Is that on purpose?
Thanks,
Elke
Elke, from the provided image, we found that you are using the SfRichTextBoxAdv with the Windows 11 Dark theme applied. The dark theme uses darker colors, often with dark backgrounds. So, in the SfRichTextBoxAdv, primary controls including the scroll bars will be in dark color, but the thumb, which is used to scroll, will be white for a user-friendly interface, as shown below:
We have also attached a sample application where the Windows 11 light and dark themes can be applied to the SfRichTextBoxAdv control.
Hi,
we are using the Windows 11 Light Theme and the thumb is only visible when the mouse hovers over the scrollbarisn't visible at all. We use the SfRichtextBoxExtension from one of our samples, because we need a text property.
I attached our sample code.
Thanks in advance!
Elke
Elke, we can reproduce the reported issue with "Scrollbars are shown as black in the continuous layout mode of the extension class with Windows 11 light theme applied" We will validate this issue and update you with further details within two working days, on or before January 17, 2024.
Elke, please use the below code in the constructor of the extension class, where the scrollbars of the SfRichTextBoxAdv control will be preserved properly. We have also attached the modified sample application.
|
SfSkinManager.SetTheme(this, new Theme("Windows11Light")); SetResourceReference(StyleProperty, typeof(SfRichTextBoxAdv)); |
Please refer to the following UG link for more details.
https://help.syncfusion.com/wpf/themes/skin-manager#apply-themes-to-the-controls-derived-from-syncfusion-controls
Thanks! Now the scrollbar is shown correctly with the theme.
Elke, Most Welcome