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 should set Button.Template. Also Grid.ColumnDefinitions can be used to set the position and width of elements inside properly.
Button.Template
Grid.ColumnDefinitions