Problem: I have WPF window that is set sizeToContent on height. It has one child (grid) with following row defs:
<Grid.RowDefinitions> <RowDefinition Name="QueueHeight" Height="*"/> <RowDefinition Height="30"/> <RowDefinition Name="PlayedHeight" Height="*"/> </Grid.RowDefinitions>
Row 2 is a static row that will always be 30 pixels and contains main UI.
Resizing the contents row 3 results in window expanding down and row 2 staying put
Resizing the contents row 1 results in window also expanding down and row 2 moving down as well.
Question: What can I do so that resizing the contents of row 1 results in row 2 staying in the same place (akin to row 3)? Since this has to be done with animations, I can't just use w.Top = w.Top + resize
Attempted solutions: Animated w.Top property and move down needed amount. Results in extremely jittery animation that looks like shit.
Edit: Clarified that I was resizing the contents, not the rows themselves.