How can I set background for the SyntaxEditor?

SyntaxEditor for WPF Forum

Posted 13 years ago by Andrew Kapytau
Version: 11.1.0544
Avatar
We are trying to use new DevExpress themes, and we want to theme default background for the SyntaxEditor for the new theme.

How we can do it? As we see in Snoop, default background is "Local"

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Andrew,

You an use an implicit Style like the following to force the background to a certain color. If the Background is not explicitly set, then it will use the background defined by the associated IHighlightingStyleRegistry for plain-text.
<Style TargetType="editor:SyntaxEditor">
    <Setter Property="Background" Value="Red" />
</Style>


Actipro Software Support

The latest build of this product (v24.1.3) 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.