WPF FlowDocument Paragraph Inlines Length
Are there any restrictions on the WPF Document.Paragraph object when using the FlowDocument control?
My FlowDocument becomes empty when I add a paragraph that contains more than 450 lines per paragraph. I couldn't find anything in the MSDN documentation regarding max. length, etc.
Any ideas why this is happening?
+1
source to share
2 answers
I did a quick test and added 10,000 Runs to the Paragraph and the FlowDocument seemed to display them in order (although it took a little bit to calculate the number of pages):
Paragraph p = new Paragraph();
for (int i = 0; i < 10000; i++)
{
p.Inlines.Add(new Run(String.Format("({0}) Sphinx of black quartz, judge my vow! ", i)));
}
wnd.Content = new FlowDocument(p);
Is there something special about the lines you add to a paragraph?
0
source to share