0
我有一個的DocumentViewer它,我的文檔屬性設置爲XPS文件WPF的DocumentViewer - 滾動到頁/位置
var x = new XpsDocument(tempFile, FileAccess.Read);
Document = x.GetFixedDocumentSequence();
x.Close();
設定了文檔我如何可以滾動到頁面x或到位置y像素放下文件?
編輯:
我現在已經修改爲:
var x = new XpsDocument(tempFile, FileAccess.Read);
Document = x.GetFixedDocumentSequence();
VerticalOffset = 250;
x.Close();
現在看來,每個其他時間一次正常滾動,但兩者之間似乎總是回到開始滾動。這很奇怪,我無法解釋它。有任何想法嗎?