Recently developed WPF program, need to print, use the FlowDocument (this is equivalent to have a print template, and can be modified at any time, really very convenient). But it's a bit of a hassle to output tabular data, which is probably most of the time.
Because TableCell inside can not directly use Run or TextBlock, to add paragraph, this time the problem is, the TextAlignment property set above the paragraph, only when the text content directly written in the paragraph in effect ,
For the included TextBlock or run, even if you set their alignment directly, the content stays on the far left.
In this problem entangled half a day, search query a half-day data, finally understand. Paragraph is a drain layout element, the inner child element can only be one next to the reality. So in this case, replace the paragraph with Blockuicontainer and then set the alignment of run or TextBlock OK.
[WPF Printing] Text alignment for the WPF document element (Run TextBlock Paragraph)