tags:

views:

141

answers:

1

Hi,

I need to show FlowDocument with font size slider and search button. FlowDocumentReader in Scroll viewing mode does exactly what I want, except that it always shows vertical scroll bar, whereas I need to show it only when it will be enabled (internally ReaderScrollViewer's VerticalScrollBarVisibility is Visible, but I need Auto). How can I achieve such view?

Thanks.

+2  A: 

Instead of using the FlowDocumentReader in Scroll viewing mode, you can use the FlowDocumentScrollViewer. The FlowDocumentScrollViewer has a VerticalScrollBarVisibility property.

John Myczek