wpftoolkit
wpftoolkit copied to clipboard
PropertyGrid styling issues
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.
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:
Thank you
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.
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>