Denis
Denis

Reputation:

FlowDocumentReader scroll bar visibility in Scroll viewing mode

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.

Upvotes: 1

Views: 3345

Answers (1)

John Myczek
John Myczek

Reputation: 12256

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

Upvotes: 12

Related Questions