Change background of scrollbar container

SyntaxEditor for WPF Forum

Posted 13 years ago by Bradley
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 13 years ago by Actipro Software Support - Cleveland, OH, USA
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" />
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 13 years ago by Bradley
Thanks, customizing that brush did the trick.
The latest build of this product (v23.1.4) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.