Change scrolls color

SyntaxEditor for WPF Forum

Posted 11 years ago by Pablo Santos
Version: 13.2.0590


I have a dark style for my text editor but I didn't find any way to change the scrolls color. Any help?

This is my code:

SyntaxEditor editor = new SyntaxEditor();

editor.IsLineNumberMarginVisible = true;
editor.CanSplitHorizontally = false;
editor.Document.IsReadOnly = true;
editor.Document.TabSize = mToolInfo.TabSpaces;
editor.ZoomLevel = 1;

editor.Background = mColors.BackgroundBrush;
editor.SelectionMarginBackground = mColors.BackgroundBrush;
editor.OutliningMarginBackground = mColors.BackgroundBrush;
editor.Foreground = mColors.FontBrush;
editor.LineNumberMarginBackground = mColors.LineNumberBackgroundBrush;
editor.LineNumberMarginForeground = mColors.LineNumberFontBrush;


Thanks in advance!

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Pablo,

The ScrollBars in SyntaxEditor just use whatever style the native ScrollBars use.  Please check out our documentation on our Themes system.  You can set a Metro Dark theme (view a sample of it in our sample project) which will have a dark theme and can apply that to native WPF controls, which will then affect the ScrollBars we use.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.