How can I style the left "border" of a PropertyDataAccessorItem?

Grids for WPF Forum

Posted 4 years ago by Magnus Lindhe
Version: 15.1.0624
Avatar

How can I change the color of the indentation part of a rendered property? I have tried to change the border color of a PropertyDataAccessorItem but it only affects the bottom border (red in image below). I have managed to change the background color of the category but that does not affect the part of the control I want to change.

See screenshot. Area I want to change color of is marked as yellow:

http://snag.gy/94RDu.jpg

 

[Modified 4 years ago]

Comments (1)

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

Hi Magnus,

That comes from the TreeListViewToggleButton.CategoryBackground property.  If you make an implicit style like this in your App's resources, you can alter it:

<Style TargetType="propgrid:TreeListViewToggleButton">
	<Setter Property="CategoryBackground" Value="Red" />
</Style>


Actipro Software Support

The latest build of this product (v2019.1 build 0682) was released 4 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.