views:

141

answers:

2

I'm trying to find the most expandable way to show a flowdocument inside a window - just a flowdocument. I have Then in the constructor for the Window, I set the Document of the viewer to one I load from XAML (in code). The XAML contains: ... No matter what I try, the FlowDocumentScrollViewer does not scroll and I can't see the truncated parts of the document. Does it have anything to do with the BlockUIContainer, or am I missing something else?

A: 

Flexible Content Display With Flow Documents

SUMMARY: FlowDocumentScrollViewer - This control displays documents in a continuous flow with a scrollbar, similar to Web pages or the Web Layout in Microsoft Word.

adatapost
A: 

I eventually got this working by setting the ListBox inside the document to IsHitTestVisible="false", then binding the Width of a textblock inside the ListBoxItem template to the ActualWidth of the ListBoxItem.

Echilon