How to define different MinHeight in ControlTheme #16155
-
Beta Was this translation helpful? Give feedback.
Answered by
stevemonaco
Jun 28, 2024
Replies: 1 comment 1 reply
-
The default See for setters onVerticalAlignment and HorizontalAlignment .
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bruce9009
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default
VerticalAlignment
isStretch
. Which means your custom buttons are being stretched as much as the parent container allows.MinHeight
only constrains the button from being too small.See
Avalonia/src/Avalonia.Themes.Fluent/Controls/Button.xaml
Line 21 in 2a9e7e9
VerticalAlignment
andHorizontalAlignment
.