Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropertyGrid styling issues #1759

Open
diegobarile opened this issue Sep 11, 2023 · 3 comments
Open

PropertyGrid styling issues #1759

diegobarile opened this issue Sep 11, 2023 · 3 comments

Comments

@diegobarile
Copy link

diegobarile commented Sep 11, 2023

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

@XceedBoucherS
Copy link
Collaborator

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

@diegobarile
Copy link
Author

diegobarile commented Oct 3, 2023

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.

@wnhat
Copy link

wnhat commented Oct 23, 2023

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants