Reputation:
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
Reputation: 12256
Instead of using the FlowDocumentReader in Scroll viewing mode, you can use the FlowDocumentScrollViewer. The FlowDocumentScrollViewer has a VerticalScrollBarVisibility property.
Upvotes: 12