I'd like to change the category appearance for all categories in PropertyGrid. I'd like to set font color to Gray, FontSize to 14 (bigger than properties) and FontWeight to Normal. I tried the following code:
<Style TargetType="{x:Type propgrid:PropertyGridDataAccessorItem}">
<Style.Triggers>
<Trigger Property="DataAccessorType"
Value="Category">
<Setter Property="Foreground"
Value="Gray" />
<Setter Property="FontSize"
Value="14" />
<Setter Property="FontWeight"
Value="Normal" />
</Trigger>
</Style.Triggers>
</Style>
This code doesn't give the correct effect:
- The font color of categories is set correctly to Gray
- FontSize affects both categories and properties. I don't want properties to have bigger font size.
- FontWeight is not changed - it remains Bold.
What should I correct to have the desired effect?