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: ssugden **

Hi,

Thank you for the help. It has solved nearly all my issues (there area lot of styles to copy!)

I still can't seem to set the MouseOver Background for the PART_Name in PropertyItemBase. I have set it as follows (Red is just a test color):
```
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="PART_Name" Property="Background" Value="Red" />
</Trigger>
<....>
</ControlTemplate.Triggers>
```

But it seems to make no difference. I have the same issue with IsSelected.

Any idea what is going on?

Thank you


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>