In addition to Left, Right, and Center, you can set the HorizontalContentAlignment property to Stretch, which stretches the child element to fill the allocated space of the parent element. For more information, see Alignment, Margins, and Padding Overview.
This property only affects a control whose template uses the HorizontalContentAlignment property as a parameter. On other controls, this property has no impact.