![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |