1

I'm trying to get the position from FlowDocumentScrollViewer. And save it to db.

After that, close and re-open the program. At that time, the scroll should be set to what I saved position.

Simply, I hope to save that I watched position. and later, when I open it, I want to see the position which I watched last time.

Now, I'm watching this class, but I couldn't find some method or variables about this feature. FlowDocumentPageViewer has GoToPage(), so I hope to get this kind of method from FlowDocumentScrollViewer.

How can I create thesas feature?

KONE Seion
  • 51
  • 1
  • 7

1 Answers1

0

as described here you need to get the scollviewer property of your FlowDocumentScrollViewer. than you can get scrollbar position with myScrollViewer.VerticalOffset and set it with myScrollViewer.ScrollToVerticalOffset(double value)

Community
  • 1
  • 1
rmbq
  • 427
  • 4
  • 20
  • Thanks a lot. I already saw this page, but I thought I cannot effective to my situation. I will try it again. Thanks! – KONE Seion Oct 14 '16 at 01:56