I'm aware that in WPF you want to keep the sizes of controls as flexible as possible so that they can flow and expand depending on their context (like in CSS).
But most of the code examples I come across are hard-coding sizes like the heights in this example:
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.5*"/>
<ColumnDefinition Width="0.5*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="31"/>
<RowDefinition Height="31"/>
<RowDefinition Height="31"/>
</Grid.RowDefinitions>
Isn't assigning a height of "31" to each row a bad practice that should not be emulated? Or is there a reason for this? Or could it be that authors create these examples in design view and just don't clean up the hard coded heights.
Does anyone have any best practices regarding element sizing (especially with respect to using the * syntax) that people starting out with XAML can follow to develop good habits from the beginning?