Override completion list background color

SyntaxEditor for WPF Forum

Posted 2 years ago by Josh
Version: 18.1.0
Avatar

Hello,

I'm trying to override the completion list background color and I'm failing.  How does one do this?

Comments (2)

Posted 2 years ago by Josh
Avatar

Seems adding the following to the resources of the syntaxeditor does the trick:

<SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.ListBackgroundNormalBrushKey}" Color="DarkGray" />

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Josh,

You should be able to add a line like this in your Application.Resources:

<Style TargetType="syntaxeditor:IntelliPromptCompletionListBox">
	<Setter Property="Background" Value="Red" />
</Style>

The line you had might work too, but it also would affect any other ListBox controls in the same context.  There aren't likely any but the code above at least targets the completion list.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.