Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a TextBlock with two Run objects. I want one of the Runs to stay on the left-hand side of the TextBlock while the other Run stays on the right-hand side. I know I could try to insert a third Run between the two, but the number of characters in each Run changes along with the state of the program. An other issue is that the TextBlock is re-sizable, so I can't just subtract the combined number of characters in both Runs from some fix number and use the result to create white-space for a third Run.

Is there a way to right justify one Run while left justifying the other Run, or should I just use two seperate TextBlocks and disguise them as a single TextBlock?
Posted
Comments
webmaster442 3-Jan-16 15:16pm    
I don't see why you want to stick with one Textblock. Use two. It's much easier.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900