Tom
Tom

Reputation: 1227

How to align the text in a button to the right?

This is probably a dumb question but I can't find the answer.

Upvotes: 0

Views: 2372

Answers (1)

johnhforrest
johnhforrest

Reputation: 991

I believe you are looking for the HorizontalContentAlignment attribute. Below is an example:

<Button Name="button" Content="Hello World" HorizontalContentAlignment="Right"/>

Upvotes: 8

Related Questions