|
@@ -1,4 +1,5 @@
|
|
-using System;
|
|
|
|
|
|
+using ComPDFKitViewer.PdfViewer;
|
|
|
|
+using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text;
|
|
@@ -13,13 +14,14 @@ using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
-namespace compdfkit_tools.PDFView.PDFOutline.PDFOutlineControl
|
|
|
|
|
|
+namespace compdfkit_tools.PDFControl
|
|
{
|
|
{
|
|
/// <summary>
|
|
/// <summary>
|
|
/// CPDFOutlineControl.xaml 的交互逻辑
|
|
/// CPDFOutlineControl.xaml 的交互逻辑
|
|
/// </summary>
|
|
/// </summary>
|
|
public partial class CPDFOutlineControl : UserControl
|
|
public partial class CPDFOutlineControl : UserControl
|
|
{
|
|
{
|
|
|
|
+ CPDFViewer pdfViewer;
|
|
public CPDFOutlineControl()
|
|
public CPDFOutlineControl()
|
|
{
|
|
{
|
|
InitializeComponent();
|
|
InitializeComponent();
|
|
@@ -27,6 +29,11 @@ namespace compdfkit_tools.PDFView.PDFOutline.PDFOutlineControl
|
|
CPDFOutlineUI.Loaded += CPDFOutlineUI_Loaded;
|
|
CPDFOutlineUI.Loaded += CPDFOutlineUI_Loaded;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void InitWithPDFViewer(CPDFViewer pdfViewer)
|
|
|
|
+ {
|
|
|
|
+ this.pdfViewer = pdfViewer;
|
|
|
|
+ }
|
|
|
|
+
|
|
private void CPDFOutlineUI_Loaded(object sender, RoutedEventArgs e)
|
|
private void CPDFOutlineUI_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
{
|
|
CPDFOutlineUI.OutlineNodeList = new TreeView();
|
|
CPDFOutlineUI.OutlineNodeList = new TreeView();
|