I've been trying to apply the data-binding concepts so useful for creating
elements on a Canvas to creating elements on a FlowDocument. On a Canvas, an
ItemsControl with a DataTemplate can be a child of the Canvas to create the
elements. But on a FlowDocument, Blocks are the only allowed children.
I tried wrapping my ItemsControl with a BlockUIContainer, but my viewer does
not break a long BlockUIContainer across pages --- when printed the elements
flow off the bottom of the page.
Am I missing something? It seems like you should be able to have a
BlockUIContainer-producing DataTemplate for creating children for a
FlowDocument, but I don't know how. I think I understand how to do this
programmatically, but is there a way to do this in XAML?
(WPF is very impressive --- the people at MS should be proud.)