27
loading...
This website collects cookies to deliver better user experience
<Window x:Class="PdfViewer.MainWindow"
xmlns:pdfviewer="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF">
<pdfviewer:PdfViewerControl x:Name="pdfViewer"/>
</Window>
public void EnableCloudDrawingMode()
{
pdfViewer.AnnotationMode = PdfViewerAnnotationMode.Polygon;
pdfViewer.PolygonAnnotationSettings.BorderEffect = BorderEffect.Cloudy;
}
public void EnableDefaultCloudSettings()
{
pdfViewer.AnnotationMode = PdfViewerAnnotationMode.Polygon;
pdfViewer.PolygonAnnotationSettings.BorderEffect = BorderEffect.Cloudy;
// Set the default appearance of the cloud.
pdfViewer.PolygonAnnotationSettings.StrokeColor = Colors.Red;
pdfViewer.PolygonAnnotationSettings.FillColor = Colors.White;
pdfViewer.PolygonAnnotationSettings.Thickness = 2;
pdfViewer.PolygonAnnotationSettings.Opacity = 0.5f;
}