Skip to content

How to define different MinHeight in ControlTheme #16155

Answered by stevemonaco
Bruce9009 asked this question in Q&A
Discussion options

You must be logged in to vote

The default VerticalAlignment is Stretch. 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

<Setter Property="VerticalAlignment" Value="Center" />
for setters on VerticalAlignment and HorizontalAlignment.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bruce9009
Comment options

Answer selected by Bruce9009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants