-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathSmartFill.xaml.cs
43 lines (42 loc) · 1.26 KB
/
SmartFill.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
#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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using syncfusion.demoscommon.wpf;
namespace syncfusion.pdfviewerdemos.wpf
{
/// <summary>
/// Interaction logic for SmartFill.xaml
/// </summary>
public partial class SmartFill : DemoControl
{
public SmartFill()
{
InitializeComponent();
}
public SmartFill(string themename) : base(themename)
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
pdfviewer1.Unload(true);
pdfviewer1 = null;
if (this.DataContext is SmartFillViewModel)
{
(this.DataContext as SmartFillViewModel).DocumentStream.Dispose();
this.DataContext = null;
}
base.Dispose(disposing);
}
}
}