I am having difficulties getting my grid column to be full width. As you can see, I tried HorizontalAlignment="Stretch" (also tried Center) on the textblock and Width="*" (also tried Auto) but neither seem to work.
I want the column to be the full window width and the 'welcome' text to be centered.
<Grid>
<DockPanel LastChildFill="False">
<TextBlock DockPanel.Dock="Top" Text="Drink & Drive"/>
<TextBlock DockPanel.Dock="Bottom" Text="Drink & Drive - 2020"/>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Stretch" Text="WELCOME"/>
</Grid>
</DockPanel>
</Grid>
Result:
Thanks.