2016-03-16 19 views
0

我正在使用PDFtron作爲Win 10應用程序。我正在建立自己的定製工具,用於繪製和文本。我知道我有控制,但我更喜歡建立自己的控制。我知道,在執行樣本並使用觸摸模式繪製一條線時,pdf控件因爲鎖定而不會翻頁。我試圖調查這是怎麼發生的,但我在控件示例項目中沒有看到它。有人知道如何通過觸摸繪圖來鎖定控件嗎?在使用觸摸畫線時鎖定PDF

問候。

回答

1

所以這並獲得成功......

internal void UnFreeze() 
    { 
     _pdfViewer.SetZoomEnabled(true); 
     _pdfViewer.SetScrollEnabled(true); 
    } 

    public void Freeze() 
    { 
     _pdfViewer.SetZoomEnabled(false); 
     _pdfViewer.SetScrollEnabled(false); 
    }