Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Data binding in a FlowDocument

 
 
Old 05-13-2006   #1 (permalink)
Mark at S&W


 
 

Data binding in a FlowDocument

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.)

Thanks,

Mark


My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46