DEV Community

Cover image for How to detect Sections that are visible FlowDocumentScrollViewer view?
Kiran Shahi
Kiran Shahi

Posted on

How to detect Sections that are visible FlowDocumentScrollViewer view?

I have multiple section in FlowDocument as follows. Since there are multiple blocks inside FlowDocument and FlowDocument is inside FlowDocumentScrollViewer the content can be scrolled. Here, I am trying to detect the block that is currently visible in view. For example in following image <Section Name="sec2"> ... </Section> is visible.

Top comments (0)