Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: PropertyGrid Category Header Style [22206]

$
0
0
How do we style the PropertyGrid Category Header (GroupItem)? I would like to be able to style the Background, Border and glyphs (Up_Arrow and Down_Arrow) in the Category Header. I can style other elements (including editors etc) but I can't see a way to style the Category Header. I have tried to replace the template (starting with the template provided by the VS Edit Template/Edit Copy tool) and even though I change colors etc for what appears to be the relevant elements in the template the Category Header remains unchanged. The one exception is the Foreground color which I can change in the Category Header.

Thank you,

Scott
Comments: ** Comment from web user: BoucherS **

Hi,

You are at the right place : in the triggers of the style for PropertyItemBase. Doing the following modifications in
-Xceed.Wpf.Toolkit/PropertyGrid/Themes/Aero2.NormalColor.xaml (in Windows 8)
-Xceed,Wpf.Toolkit/PropertyGrid/Themes/Generic.xaml (other Windows)

modify the Background for the PART_Name of the PropertyItemBase as expected :
```
<Trigger Property="IsMouseOver"
Value="True">
<Setter TargetName="PART_Name"
Property="Background"
Value="Green" />
</Trigger>
<Trigger Property="IsSelected"
Value="True">
<Setter TargetName="PART_Name"
Property="Background"
Value="Red" />
</Trigger>
```


Viewing all articles
Browse latest Browse all 4964

Trending Articles