I am implementing search highlighting in a FlowDocumentPageViewer by setting the background property of selected TextRanges to yellow.
Unfortunately, the viewer repaginates the entire document when the properties are changed. If you happen to be on a page towards the end of a long document, the viewer is blank for a number of seconds until the page is updated.
Is there any way of convincing the viewer that there is no need to repaginate the document when highlighting?