Scroolbar is shown as a black box in windows 11 theme

The scrollbar in the SfRichtextboxAdv is shown as a black box with the windows 11 theme:

Image_6630_1704704992962

Is that on purpose?

Thanks, 

Elke


6 Replies 1 reply marked as answer

KG Kalaivannan Ganesan Syncfusion Team January 9, 2024 06:01 AM UTC

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.


Attachment: SfRichTextBoxAdv_Windows11_56d98676.zip


EG Elke Goellinger replied to Kalaivannan Ganesan January 11, 2024 02:03 PM UTC

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


Attachment: Test_1c866302.zip


KG Kalaivannan Ganesan Syncfusion Team January 12, 2024 02:38 PM UTC

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.



KG Kalaivannan Ganesan Syncfusion Team January 17, 2024 04:07 PM UTC

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


Attachment: SfRichTextBoxAdv_Windows11Light_7fb01b34.zip

Marked as answer

EG Elke Goellinger January 25, 2024 11:53 AM UTC

Thanks! Now the scrollbar is shown correctly with the theme.




KG Kalaivannan Ganesan Syncfusion Team January 29, 2024 06:48 AM UTC

Elke, Most Welcome


Loader.
Up arrow icon