¿Cómo puedo establecer el valor de la Heightpropiedad de un control WPF en el código C # en " Auto"?
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
Quiero reproducir este comportamiento en el código subyacente. ¿Algunas ideas?