I have a DocumentViewer which I am setting the Document property to an XPS file
var x = new XpsDocument(tempFile, FileAccess.Read);
Document = x.GetFixedDocumentSequence();
x.Close();
Having set the document how can I scroll to Page x or to a position y pixels down the document?
EDIT:
I have now amended to:
var x = new XpsDocument(tempFile, FileAccess.Read);
Document = x.GetFixedDocumentSequence();
VerticalOffset = 250;
x.Close();
Now it appears that every other time time it scrolls correctly, but in between it always seems to scroll back to the beginning. This is odd and I can't explain it. Any ideas?