Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Align button content

I want the content of a wpf button to be left aligned I tried the following but the text is still centered inside the button.

    <Button >         <StackPanel HorizontalAlignment="Stretch">             <TextBlock HorizontalAlignment="Left" Text="Save"/>         </StackPanel>     </Button> 

What do i do?

like image 374
Jose Avatar asked Jun 02 '09 20:06

Jose


1 Answers

Found it, it's HorizontalContentAlignment.

:)

like image 118
Jose Avatar answered Sep 29 '22 05:09

Jose