1.8. Building FlowDocuments

The WPF FlowDocument class represents a document that contains elements that display WPF controls, text, and other graphics. Special objects within the document can arrange elements as lists, tables, paragraphs, and so forth. The FlowDocument object automatically rearranges the elements as needed and as space permits, much as a web page rearranges the text, images, and other items it contains.

This is a very different kind of interface from those produced by simple Windows Forms and WPF pages. The result is appropriate, when displaying as much content as possible is more important than keeping the content in specific relative positions.

To use a FlowDocument in WPF, you put other objects inside its XAML tags. The ...

Get C# Graphics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.