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

Grids for WPF Forum

Posted 8 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 8 years ago]

Comments (1)

Answer - Posted 8 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 (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.