-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathInvisibleSignature.xaml.cs
46 lines (45 loc) · 1.73 KB
/
InvisibleSignature.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#region Copyright Syncfusion® Inc. 2001-2025.
// Copyright Syncfusion® Inc. 2001-2025. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
namespace syncfusion.pdfviewerdemos.wpf
{
/// <summary>
/// Interaction logic for InvisibleSignature.xaml
/// </summary>
public partial class InvisibleSignature : DemoControl
{
public InvisibleSignature()
{
InitializeComponent();
}
public InvisibleSignature(string themename) : base(themename)
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
pdfviewer1.ShowToolbar = true;
pdfviewer1.IsBookmarkEnabled = true;
pdfviewer1.ThumbnailSettings.IsVisible = true;
pdfviewer1.EnableLayers = true;
pdfviewer1.PageOrganizerSettings.IsIconVisible = true;
pdfviewer1.EnableRedactionTool = true;
pdfviewer1.FormSettings.IsIconVisible = true;
pdfviewer1.Unload(true);
pdfviewer1 = null;
if (this.DataContext is InvisibleSignatureViewModel)
{
(this.DataContext as InvisibleSignatureViewModel).DocumentStream.Dispose();
if ((this.DataContext as InvisibleSignatureViewModel).SignatureStream != null)
(this.DataContext as InvisibleSignatureViewModel).SignatureStream.Dispose();
this.DataContext = null;
}
base.Dispose(disposing);
}
}
}