Let’s say in an example like this, I would like the Grid to fill the entire Button with Red.
<Button Margin="2">
<Grid x:Name="adGrid" Background="Red">
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ActualWidth, ElementName=adGrid}"></TextBlock>
<TextBlock Text="x"></TextBlock>
<TextBlock Text="{Binding ActualHeight, ElementName=adGrid}"></TextBlock>
</StackPanel>
</StackPanel>
</Grid>
</Button>
I just end up with this:

The problem here is that
Gridis not covering the entireButton. If you want the entireButtonto beredeither set thebackgroundcolor ofbuttonto red or stretch thegridto cover rest of thebuttonEither do
or