xaml - WPF: How to justify all lines within paragraphs (lines with line breaks too) -


i have paragraphs within flowdocument, , need justify lines (even lines line breaks)

here's code sample:

 <paragraph textalignment="justify"> "one of important operations necessary when text materials prepared printing or display task of dividing long paragraphs individual lines.<linebreak/> when job has been done well, people not aware of fact words reading have been broken apart arbitrarily , placed rigid , unnatural rectangular framework; if job has been done poorly, readers distracted bad breaks interrupt train of thought." </paragraph> 

the output of above not justify line has line break, line aligned left, need same-width lines lines

how achieved?

(note desired output same output achievable in ms word if paragraph has line breaks , set justify, example if have 3 words on line we'll have 1 word on left, 1 in center , 1 on right)

thanks, sam

i don't think can achieve want. if replace <linebreak/> close paragraph (which know don't want):

<paragraph textalignment="justify"> 1 of important operations necessary when text materials prepared printing or display task of dividing long paragraphs individual lines. </paragraph> <paragraph textalignment="justify"> when job has been done well, people not aware of fact words reading have been broken apart arbitrarily , placed rigid , unnatural rectangular framework; if job has been done poorly, readers distracted bad breaks interrupt train of thought. </paragraph> 

the last line of paragraph left justified.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -