This question is locked. New answers and comments are not allowed.
I am trying to insert some text that is like newtext = "Line 1 \r\n Line 2 \r\n" and so on. I wrap the text with a span (Span xxx = new Span(newtext)) and then use the "Children.AddAfter" method to add it to the location I want to.
However the formatting is all screwed up. For text without line break then it is fine.
I also try to replace \r\n with FormattingSymbolLayoutBox.LINE_BREAK but it didn't work.
However the formatting is all screwed up. For text without line break then it is fine.
I also try to replace \r\n with FormattingSymbolLayoutBox.LINE_BREAK but it didn't work.