Skip to content

Conversation

@AkiSakurai
Copy link
Contributor

The padding in WPF GroupBox controls with empty header was asymmetric due to extra height from the Label header. To achieve symmetry, the header is set to null, and a top padding is added, value extracted from the WPF source code.

https://github.com/dotnet/wpf/blob/092d18b5b2a6f0f1d9963730a4423c95c84652cc/src/Microsoft.DotNet.Wpf/src/Themes/XAML/GroupBox.xaml#L33

Original Screenshot:

original

Fixed Screenshoot:
fixed

The padding in WPF GroupBox controls with empty header was asymmetric due to extra height
from the Label header. To achieve symmetry, the header is set to null,
and a top padding is added, value extracted from the WPF source code.

https://github.com/dotnet/wpf/blob/092d18b5b2a6f0f1d9963730a4423c95c84652cc/src/Microsoft.DotNet.Wpf/src/Themes/XAML/GroupBox.xaml#L33
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

Successfully merging this pull request may close these issues.

1 participant