wpftoolkit icon indicating copy to clipboard operation
wpftoolkit copied to clipboard

PropertyGrid styling issues

Open diegobarile opened this issue 2 years ago • 3 comments

Hello everybody.

We are using the Extended.Wpf.Toolkit 4.5.0 into a WPF .NET 6.0 project that also uses the MaterialDesignThemes 4.9.0. The PropertyGrid control works fine except its styling. We most ugly issues are the captions of the category expander: they are trimmed and the foreground color is too light. Please see the screenshot below for more details. How can we change the style of these elements?

Thanks in advance.

image

diegobarile avatar Sep 11 '23 08:09 diegobarile

Hi,

could it be related to the MaterialDesignTheme ? Can you remove that theme to see ?

The expander should be on left, with Black Foreground. Here's my version: image

Thank you

XceedBoucherS avatar Sep 27 '23 16:09 XceedBoucherS

Hello.

Thanks for the reply and sorry for my delay.

The issue is due to the MaterialDesignTheme for sure, because if I remove It the PropertyGrid works as expected.

Regards.

diegobarile avatar Oct 03 '23 10:10 diegobarile

you kan edit ToggleButton style padding to 0 if you need to use MaterialDesignThemes <UserControl.Resources> <Style TargetType="ToggleButton"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ToggleButton"> <Border Padding="0"></Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </UserControl.Resources>

wnhat avatar Oct 23 '23 07:10 wnhat