How can we align different line with different alignement in FomattedText

192 Views Asked by At

I have to draw formatted text in such a manner that last line should always come with right align. for example.

"Some text ............................................................" Right align.

I can set font size etc in formatted can i set text like it always come in next line with right align.

1

There are 1 best solutions below

2
On

If you are using a TextBlock within the control to display the text, then simply set the Width to the width of the parent control and the TextAlignment property.