You can bind Widthto ActualHeightand use converter to apply a custom function. For instance. The following code always makes the button squared:
<Button Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"/>
Hope this helps,
Greetings, Anwaka.
source
share