2016-03-07 108 views
0

在Windows应用商店应用程序项目中,我使用PDFtron PDFViewCtrl来显示pdf文档。 我有一个显示文档的屏幕部分,它运行良好。PDFtron - 禁止在文档中写入表面笔

我想知道是否有一种方法来禁用此控件上的表面笔funcionality,因为它是现在,当我用笔传递文档时,它开始绘制线条。

这是我的XAML:

<Grid x:Name="pdfViewer" Background="Transparent" Canvas.ZIndex="111" > 
    <Grid.RowDefinitions> 
     <RowDefinition Height="*"/> 
     <RowDefinition Height="Auto"/> 
    </Grid.RowDefinitions> 

    <Border x:Name="PDFViewBorder" Background="White" Grid.Row="0"/> 
</Grid> 

,这背后是

MyPDFViewCtrl = new pdftron.PDF.PDFViewCtrl(); 
PDFViewBorder.Child = MyPDFViewCtrl; 
docpdf = new pdftron.PDF.PDFDoc(file); 
docpdf.InitSecurityHandler(); 
MyPDFViewCtrl.SetDoc(docpdf); 

回答

1

在PDFViewCtrlTools项目我的代码,在泛工具(Pan.cs),在PointerPressedHandler方法,是否检查指针是否是笔 else if (e.Pointer.PointerDeviceType == PointerDeviceType.Pen) 这是导致签名发生的原因。你可以编辑这个来改变行为。

+0

好吧生病尝试,但从我理解如果我编辑它,它会影响我所有的PDFviewctrl,我只是想禁用特定的功能。 – Ric

+0

好吧,我设法开始工作。谢谢您的帮助 – Ric