Note that Button.Width
is not of type GridLength
. In Grid.GridLength
you can specify the value as fixed, auto or star. It is only used for size of rows, columns in Grid
.
Button.Width
is of type double
. That is if you want to set it using a resource you need a resource like
<sys:Double x:Key="Height">200</sys:Double>