Is there a declarative way to force a set of Buttons to be the same size?

Posted by Jekke on Stack Overflow See other posts from Stack Overflow or by Jekke
Published on 2010-03-24T18:43:41Z Indexed on 2010/03/24 19:23 UTC
Read the original article Hit count: 279

Filed under:
|
|
|
|

I'm writing a form in XAML that has multiple buttons with content of different sizes (ie "OK" and "Save As...") Ideally, I'd like them all to be the smallest size possible to hold the largest content. In the example above, both buttons would be the width necessary to hold "Save As..." plus the margins and padding.

If they were Grid cells, I could use a SizeGroup. Is there a similar declaration for Buttons?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about layout