Come posso impostare il valore della Height
proprietà di un controllo WPF nel codice C # su " Auto
"?
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
Voglio riprodurre questo comportamento nel codice sottostante. Qualche idea?