Silverlight for wp7: TextBlock: text with different text-align in same line?

Put TextBlocks inside a Grid control into different Columns . You must specify how TextBlocks will trim if Grid width is less that TextBlocks total width. Set Auto or number for this in different combinations.

Up vote 0 down vote favorite share g+ share fb share tw.

I want to have a TextBlock element that contains two seperate strings, both in a single line. One is aligned to the left edge of the TextBlock, one to the right edge. In HTMl&CSS I would do it like this: align:left align:right Here both Texts align:right and align:left are shown in the same line.

Is there a possibility to do this in XAML as well? Silverlight windows-phone-7 link|improve this question asked Jan 15 at 9:33user1031178484 73% accept rate.

If you put two TextBlocks into a Grid container with the text alignment you want, it should work. – jv42 Jan 15 at 9:36 so I'll have two TextBlocks in one Grid field? OK, havn't tried that... – user1031178 Jan 15 at 9:43 It's simplistic of course, it won't handle overlaps.

If you want a proper layout, you'll have to specify columns, as per @Ku6opr's answer. – jv42 Jan 15 at 12:46 Yeah, right! I don't have overlaps, so this worked perfectly fine for me – user1031178 Jan 15 at 19:28.

Put TextBlocks inside a Grid control into different Columns. You must specify how TextBlocks will trim if Grid width is less that TextBlocks total width. Set Auto, * or number* for this in different combinations.

If you put two TextBlocks into a Grid container with the text alignment you want, it should work. – jv42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions