Change background of scrollbar container

SyntaxEditor for WPF Forum

Posted 9 years ago by Bradley
Avatar
I've made the background color of my syntax editor black, have styled the scrollbar itself to my liking, but the container holding the scroll bar is still white. How would you go about changing the color of the container?

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Bradley,

It's hard to say with out a sample, as there are several elements at play. Most likely is you'd need to customize the background color of the EditorView. Something like:
<Style TargetType="{x:Type editor:EditorView}">
    <Setter Property="Background" Value="Red" />
</Style>
Alternatively, you can customize it's default brush like so:
<SolidColorBrush x:Key="{x:Static themes:SyntaxEditorCommonDictionary.EditorViewBackgroundBrushKey}" Color="Red" />
If that doesn't help please put together a small sample project that reproduces your issue and email it over then we can take a closer look. Be sure to remove any executables or change the extension of the zip file to ensure it gets past our email filters.


Actipro Software Support

Posted 9 years ago by Bradley
Avatar
Thanks, customizing that brush did the trick.
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.