In the following XAML the button will stretch to fit the width of the window, including as you resize the window. However, the TextBlock and blue box are centered. How wou
You could also set the HorizontalContentAlignment to Stretch on the Button itself.
HorizontalContentAlignment
Stretch
This will tell the content to fill the horizontal space available on the button.