FlowDocumentReader scrollbar visibility in scroll view

I need to show a FlowDocument with a font size slider and a search button. The FlowDocumentReader in scroll view does exactly what I want, except that it always shows the vertical scrollbar, while I only need to show it when it is enabled (internally the ReaderScrollViewer VerticalScrollBarVisibility is visible, but I need Auto). How can I achieve this view?

Thanks.

+1


a source to share


1 answer


Instead of using FlowDocumentReader mode in scroll view, you can use FlowDocumentScrollViewer . FlowDocumentScrollViewer has a VerticalScrollBarVisibility property .



+10


a source







All Articles