|
@@ -11,6 +11,7 @@ using Prism.Mvvm;
|
|
|
using Prism.Regions;
|
|
|
using Prism.Services.Dialogs;
|
|
|
using System;
|
|
|
+using System.Collections.Generic;
|
|
|
using System.Collections.ObjectModel;
|
|
|
using System.Linq;
|
|
|
using System.Reflection;
|
|
@@ -21,9 +22,11 @@ using System.Windows.Forms;
|
|
|
using System.Windows.Input;
|
|
|
using System.Windows.Markup;
|
|
|
using System.Windows.Media;
|
|
|
+using static Dropbox.Api.Files.SearchMatchType;
|
|
|
using static Dropbox.Api.TeamLog.AdminAlertSeverityEnum;
|
|
|
using static System.Net.Mime.MediaTypeNames;
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|
|
+using KeyEventArgs = System.Windows.Input.KeyEventArgs;
|
|
|
using ListViewItem = System.Windows.Controls.ListViewItem;
|
|
|
using TextBox = System.Windows.Controls.TextBox;
|
|
|
|
|
@@ -33,17 +36,13 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
{
|
|
|
#region 属性
|
|
|
|
|
|
- private static string hoverColor = "#D9D9D9";
|
|
|
- private static string defaultColor = "#F2F2F2";
|
|
|
- private static string selectColcr = "#97D7FB";
|
|
|
- private static string borderBackground = "#FFFFFF";
|
|
|
- private static string borderBrush = "#000000";
|
|
|
-
|
|
|
- private bool isSelete = false;
|
|
|
private IRegionManager region;
|
|
|
private IDialogService dialogs;
|
|
|
public CPDFViewer PDFViewer;
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 书签ItemSouce
|
|
|
+ /// </summary>
|
|
|
private ObservableCollection<CPDFBookmark> bookmarklist;
|
|
|
|
|
|
public ObservableCollection<CPDFBookmark> Bookmarklist
|
|
@@ -58,6 +57,9 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 书签列表为空时,显示状态
|
|
|
+ /// </summary>
|
|
|
private Visibility isEmpty;
|
|
|
|
|
|
public Visibility IsEmptyPanelVisibility
|
|
@@ -76,18 +78,13 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
|
|
|
#region 命令
|
|
|
|
|
|
- public DelegateCommand<object> MouseClickCommand { get; set; }
|
|
|
- public DelegateCommand<object> MouseEnterCommand { get; set; }
|
|
|
- public DelegateCommand<object> MouseLeaveCommand { get; set; }
|
|
|
+ public DelegateCommand<object> KeyDownCommand { get; set; }
|
|
|
|
|
|
public DelegateCommand<object> LostFocusCommand { get; set; }
|
|
|
|
|
|
- public DelegateCommand<object> GotFocusCommand { get; set; }
|
|
|
-
|
|
|
public DelegateCommand<object> AddBookmarkCommand { get; set; }
|
|
|
|
|
|
public DelegateCommand<object> ListViewItemMouseDownCommand { get; set; }
|
|
|
- public DelegateCommand<object> RenameCommand { get; set; }
|
|
|
|
|
|
public DelegateCommand<object> EditPageIndexCommand { get; set; }
|
|
|
|
|
@@ -100,94 +97,130 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
region = regionManager;
|
|
|
dialogs = dialogService;
|
|
|
|
|
|
- //MouseClickCommand = new DelegateCommand<object>(MouseClickEvent);
|
|
|
- //MouseEnterCommand = new DelegateCommand<object>(MouseEnterEvent);
|
|
|
+ Bookmarklist = new ObservableCollection<CPDFBookmark>();
|
|
|
+
|
|
|
LostFocusCommand = new DelegateCommand<object>(LostFocusEvent);
|
|
|
- //MouseLeaveCommand = new DelegateCommand<object>(MouseLeaveEvent);
|
|
|
- //GotFocusCommand = new DelegateCommand<object>(GotFocusEvent);
|
|
|
+
|
|
|
AddBookmarkCommand = new DelegateCommand<object>(AddBookmarkEvent);
|
|
|
ListViewItemMouseDownCommand = new DelegateCommand<object>(ListViewItemMouseLeftButtonDownEvent);
|
|
|
- RenameCommand = new DelegateCommand<object>(RenameEvent);
|
|
|
+
|
|
|
DeleteCommand = new DelegateCommand<object>(DelegateEvent);
|
|
|
EditPageIndexCommand = new DelegateCommand<object>(EditPageIndexEvent);
|
|
|
+ KeyDownCommand = new DelegateCommand<object>(KeyDownEvent);
|
|
|
}
|
|
|
|
|
|
- private void EditPageIndexEvent(object obj)
|
|
|
+ /// <summary>
|
|
|
+ /// 检测ObservableCollection的数据变更
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sender"></param>
|
|
|
+ /// <param name="e"></param>
|
|
|
+ private void Bookmarklist_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
|
|
|
{
|
|
|
- CPDFBookmark bookmark = obj as CPDFBookmark;
|
|
|
- if (bookmark != null)
|
|
|
+ ObservableCollection<CPDFBookmark> obsSender = sender as ObservableCollection<CPDFBookmark>;
|
|
|
+ if (obsSender != null)
|
|
|
{
|
|
|
- if (RemoveBookMark(bookmark))
|
|
|
+ if (obsSender.Count < 1)
|
|
|
{
|
|
|
- bookmarklist.Remove(bookmark);
|
|
|
-
|
|
|
- CPDFBookmark cPDFBookmark = new CPDFBookmark();
|
|
|
- bookmark.Title = bookmark.Title;
|
|
|
- bookmark.Date = DateTime.Now.ToString(@"yyyyMMddHHmmsszzz\'").Replace(':', '\'') + "\n";
|
|
|
- bookmark.PageIndex = PDFViewer.CurrentIndex;
|
|
|
+ IsEmptyPanelVisibility = Visibility.Visible;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ IsEmptyPanelVisibility = Visibility.Collapsed;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- if (PDFViewer.Document.AddBookmark(bookmark))
|
|
|
+ /// <summary>
|
|
|
+ /// 文本框按下Enter键
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
+ private void KeyDownEvent(object obj)
|
|
|
+ {
|
|
|
+ if (obj is KeyEventArgs)
|
|
|
+ {
|
|
|
+ KeyEventArgs keyEventArgs = (KeyEventArgs)obj;
|
|
|
+ if (keyEventArgs.Key == Key.Enter)
|
|
|
+ {
|
|
|
+ if (keyEventArgs.OriginalSource is TextBox)
|
|
|
{
|
|
|
- PDFViewer.UndoManager.CanSave = true;
|
|
|
-
|
|
|
- Bookmarklist = new ObservableCollection<CPDFBookmark>(PDFViewer.Document.GetBookmarkList().OrderBy(d => d.Title));
|
|
|
+ TextBox textBox = (TextBox)keyEventArgs.OriginalSource;
|
|
|
+ ListViewItem listViewItem = CommonHelper.FindVisualParent<ListViewItem>(textBox);
|
|
|
+ UpdateTitle(listViewItem, textBox);
|
|
|
+ TextBlock textBlock = CommonHelper.FindVisualChild<TextBlock>(listViewItem);
|
|
|
+ textBlock.Text = textBox.Text;
|
|
|
+ textBlock.Visibility = Visibility.Visible;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- //var list = PDFViewer.Document.GetBookmarkList().FindAll(q => q.PageIndex == bookmark.PageIndex && q.Title==bookmark.Title);
|
|
|
- //CPDFBookmark cPDF = list[0];
|
|
|
- //cPDF.PageIndex = PDFViewer.CurrentIndex;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void DelegateEvent(object obj)
|
|
|
+ /// <summary>
|
|
|
+ /// 重新定位
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
+ private void EditPageIndexEvent(object obj)
|
|
|
{
|
|
|
CPDFBookmark bookmark = obj as CPDFBookmark;
|
|
|
if (bookmark != null)
|
|
|
{
|
|
|
- if (RemoveBookMark(bookmark))
|
|
|
- bookmarklist.Remove(bookmark);
|
|
|
- //ListBoxItem myListBoxItem = (ListBoxItem)(myListBox.ItemContainerGenerator.ContainerFromItem(myListBox.Items.CurrentItem));
|
|
|
+ AlertsMessage alertsMessage = new AlertsMessage();
|
|
|
+ alertsMessage.ShowDialog("提示", "确定要将选定大纲的目标位置设置为当前位置吗?", "Cancel", "OK");
|
|
|
+ if (alertsMessage.result == ContentResult.Ok)
|
|
|
+ {
|
|
|
+ if (RemoveBookMark(bookmark))
|
|
|
+ {
|
|
|
+ bookmarklist.Remove(bookmark);
|
|
|
+
|
|
|
+ CPDFBookmark cPDFBookmark = new CPDFBookmark();
|
|
|
+ bookmark.Title = bookmark.Title;
|
|
|
+ bookmark.Date = DateTime.Now.ToString(@"yyyyMMddHHmmsszzz\'").Replace(':', '\'') + "\n";
|
|
|
+ bookmark.PageIndex = PDFViewer.CurrentIndex;
|
|
|
+
|
|
|
+ if (PDFViewer.Document.AddBookmark(bookmark))
|
|
|
+ {
|
|
|
+ PDFViewer.UndoManager.CanSave = true;
|
|
|
+ Bookmarklist.Add(bookmark);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void RenameEvent(object obj)
|
|
|
+ /// <summary>
|
|
|
+ /// 右键菜单-删除
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
+ private void DelegateEvent(object obj)
|
|
|
{
|
|
|
CPDFBookmark bookmark = obj as CPDFBookmark;
|
|
|
if (bookmark != null)
|
|
|
{
|
|
|
- //var result = PDFViewer.Document.EditBookmark(bookmark.PageIndex, textBox.Text.Trim());
|
|
|
- //if (result)
|
|
|
- //{
|
|
|
- // bookmark.Title = textBox.Text.Trim();
|
|
|
- // PDFViewer.UndoManager.CanSave = true;
|
|
|
- //}
|
|
|
+ if (RemoveBookMark(bookmark))
|
|
|
+ {
|
|
|
+ Bookmarklist.Remove(bookmark);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 删除书签
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="item"></param>
|
|
|
+ /// <returns></returns>
|
|
|
private bool RemoveBookMark(CPDFBookmark item)
|
|
|
{
|
|
|
var data = item;
|
|
|
if (data == null)
|
|
|
- return false;
|
|
|
- return PDFViewer.Document.RemoveBookmark(data.PageIndex);
|
|
|
- }
|
|
|
-
|
|
|
- private void GotFocusEvent(object obj)
|
|
|
- {
|
|
|
- if (obj is CompositeCommandParameter)
|
|
|
{
|
|
|
- CompositeCommandParameter parameter = (CompositeCommandParameter)obj;
|
|
|
- if (parameter.Parameter is TextBox)
|
|
|
- {
|
|
|
- TextBox textBox = (TextBox)parameter.Parameter;
|
|
|
-
|
|
|
- textBox.SelectAll();
|
|
|
- textBox.PreviewMouseDown -= new MouseButtonEventHandler(TxtTitleInput_PreviewMouseLeftButtonDown);
|
|
|
- }
|
|
|
+ return false;
|
|
|
}
|
|
|
+ return PDFViewer.Document.RemoveBookmark(data.PageIndex);
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// ListViewItem失去焦点
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
private void LostFocusEvent(object obj)
|
|
|
{
|
|
|
TextBox textBox = null;
|
|
@@ -198,8 +231,6 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
if (parameter.Parameter is TextBox)
|
|
|
{
|
|
|
textBox = (TextBox)parameter.Parameter;
|
|
|
- //textBox.PreviewMouseDown += new MouseButtonEventHandler(TxtTitleInput_PreviewMouseLeftButtonDown);
|
|
|
-
|
|
|
listViewItem = CommonHelper.FindVisualParent<ListViewItem>(textBox);
|
|
|
}
|
|
|
}
|
|
@@ -208,11 +239,23 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
listViewItem = (ListViewItem)(obj);
|
|
|
textBox = CommonHelper.FindVisualChild<TextBox>(listViewItem);
|
|
|
}
|
|
|
+ UpdateTitle(listViewItem, textBox);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 修改书签标题
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="listViewItem"></param>
|
|
|
+ /// <param name="textBox"></param>
|
|
|
+ private void UpdateTitle(ListViewItem listViewItem, TextBox textBox)
|
|
|
+ {
|
|
|
if (listViewItem != null)
|
|
|
{
|
|
|
var data = listViewItem.DataContext as CPDFBookmark;
|
|
|
if (data == null)
|
|
|
+ {
|
|
|
return;
|
|
|
+ }
|
|
|
var result = PDFViewer.Document.EditBookmark(data.PageIndex, textBox.Text.Trim());
|
|
|
if (result)
|
|
|
{
|
|
@@ -222,91 +265,29 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void TxtTitleInput_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
|
|
- {
|
|
|
- TextBox textBox = sender as TextBox;
|
|
|
- textBox.Focus();
|
|
|
- e.Handled = true;
|
|
|
- }
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// ListBoxItem左键单击,页面跳转
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
private void ListViewItemMouseLeftButtonDownEvent(object obj)
|
|
|
{
|
|
|
ListBoxItem listBoxItem = (obj as ListBoxItem);
|
|
|
|
|
|
if (listBoxItem != null)
|
|
|
{
|
|
|
- //box.Background = listBoxItem.Background;
|
|
|
- //box.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(selectColcr));
|
|
|
if (!(listBoxItem.DataContext is CPDFBookmark))
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
int index = (listBoxItem.DataContext as CPDFBookmark).PageIndex;
|
|
|
PDFViewer.GoToPage(index);
|
|
|
- isSelete = false;
|
|
|
- }
|
|
|
- //MessageBox.Show("dsafa");
|
|
|
- }
|
|
|
-
|
|
|
- private void MouseLeaveEvent(object obj)
|
|
|
- {
|
|
|
- if (obj is CompositeCommandParameter)
|
|
|
- {
|
|
|
- CompositeCommandParameter parameter = (CompositeCommandParameter)obj;
|
|
|
- if (parameter.Parameter is Grid)
|
|
|
- {
|
|
|
- Grid grid = parameter.Parameter as Grid;
|
|
|
- if (grid != null)
|
|
|
- {
|
|
|
- TextBlock box = CommonHelper.FindVisualChild<TextBlock>(grid);
|
|
|
-
|
|
|
- ListBoxItem myListBoxItem = CommonHelper.FindVisualParent<ListBoxItem>(grid);
|
|
|
- box.Visibility = Visibility.Visible;
|
|
|
- //if (myListBoxItem.IsSelected == true)
|
|
|
- //{
|
|
|
- // box.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(defaultColor));
|
|
|
- //}
|
|
|
- //if (myListBoxItem.IsMouseOver == true)
|
|
|
- //{
|
|
|
- // box.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(defaultColor));
|
|
|
- //}
|
|
|
- //else
|
|
|
- //{
|
|
|
- // box.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(defaultColor));
|
|
|
- //}
|
|
|
- //myListBoxItem.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(defaultColor));
|
|
|
- //grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(defaultColor));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- public void MouseEnterEvent(object obj)
|
|
|
- {
|
|
|
- if (obj is CompositeCommandParameter)
|
|
|
- {
|
|
|
- CompositeCommandParameter parameter = (CompositeCommandParameter)obj;
|
|
|
- if (parameter.Parameter is Grid)
|
|
|
- {
|
|
|
- Grid grid = parameter.Parameter as Grid;
|
|
|
- if (grid != null)
|
|
|
- {
|
|
|
- TextBlock box = CommonHelper.FindVisualChild<TextBlock>(grid);
|
|
|
- ListBoxItem listBoxItem = CommonHelper.FindVisualParent<ListBoxItem>(grid);
|
|
|
- if (box != null)
|
|
|
- {
|
|
|
- box.Visibility = Visibility.Visible;
|
|
|
- //box.Background = listBoxItem.Background;
|
|
|
- //box.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(hoverColor));
|
|
|
- }
|
|
|
-
|
|
|
- //myListBoxItem.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(hoverColor));
|
|
|
- //grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(hoverColor));
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 添加书签
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="obj"></param>
|
|
|
private void AddBookmarkEvent(object obj)
|
|
|
{
|
|
|
int index = PDFViewer.CurrentIndex;
|
|
@@ -319,23 +300,13 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
System.Windows.Controls.ListView listView = obj as System.Windows.Controls.ListView;
|
|
|
if (listView != null)
|
|
|
{
|
|
|
- //listView.Items.CurrentItem = list[0];
|
|
|
ListBoxItem myListBoxItem = (ListBoxItem)(listView.ItemContainerGenerator.ContainerFromItem(list[0]));
|
|
|
|
|
|
- //ContentPresenter myContentPresenter = CommonHelper.FindVisualChild<ContentPresenter>(myListBoxItem);
|
|
|
- //DataTemplate myDataTemplate = myContentPresenter.ContentTemplate;
|
|
|
- //Grid item = (Grid)myDataTemplate.FindName("Grid", myContentPresenter);
|
|
|
-
|
|
|
- //Grid grid = CommonHelper.FindVisualChild<Grid>(myListBoxItem);
|
|
|
if (myListBoxItem.IsSelected == false)
|
|
|
{
|
|
|
myListBoxItem.IsSelected = true;
|
|
|
myListBoxItem.Focus();
|
|
|
}
|
|
|
-
|
|
|
- //listView.SelectedItem = myListBoxItem;
|
|
|
-
|
|
|
- //myListBoxItem.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(selectColcr));
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -358,75 +329,24 @@ namespace PDF_Office.ViewModels.BOTA
|
|
|
{
|
|
|
PDFViewer.UndoManager.CanSave = true;
|
|
|
|
|
|
- Bookmarklist = new ObservableCollection<CPDFBookmark>(PDFViewer.Document.GetBookmarkList().OrderBy(d => d.Title));
|
|
|
+ Bookmarklist.Add(bookmark);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- public void MouseClickEvent(object obj)
|
|
|
- {
|
|
|
- if (obj is MouseButtonEventArgs)
|
|
|
- {
|
|
|
- var mouse = (MouseButtonEventArgs)obj;
|
|
|
- if (mouse.LeftButton == MouseButtonState.Pressed)
|
|
|
- {
|
|
|
- TextBlock box = null;
|
|
|
- Grid grid = null;
|
|
|
- if (mouse.ClickCount >= 2)
|
|
|
- {
|
|
|
- if (mouse.Source is Grid)
|
|
|
- {
|
|
|
- grid = mouse.Source as Grid;
|
|
|
- //grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(selectColcr));
|
|
|
- if (grid != null)
|
|
|
- {
|
|
|
- box = CommonHelper.FindVisualChild<TextBlock>(grid);
|
|
|
- //grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(selectColcr));
|
|
|
- if (box != null)
|
|
|
- {
|
|
|
- box.Visibility = Visibility.Collapsed;
|
|
|
- //TextBox textBox = CommonHelper.FindVisualChild<TextBox>((box.Parent as StackPanel));
|
|
|
- //FocusManager.SetFocusedElement(box.Parent, textBox);
|
|
|
- //Keyboard.Focus(textBox);
|
|
|
- //textBox.IsHitTestVisible = true;
|
|
|
- //textBox.Focus();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (mouse.Source is TextBlock)
|
|
|
- {
|
|
|
- box = (TextBlock)mouse.Source;
|
|
|
- grid = (box.Parent as StackPanel).Parent as Grid;
|
|
|
-
|
|
|
- //grid.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(selectColcr));
|
|
|
- if (box != null)
|
|
|
- {
|
|
|
- box.Visibility = Visibility.Collapsed;
|
|
|
- //TextBox textBox = CommonHelper.FindVisualChild<TextBox>((box.Parent as StackPanel));
|
|
|
- //FocusManager.SetFocusedElement(box.Parent, textBox);
|
|
|
- //Keyboard.Focus(textBox);
|
|
|
- //textBox.IsHitTestVisible = true;
|
|
|
- //textBox.Focus();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //MessageBox.Show("dsafa");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public void OnNavigatedTo(NavigationContext navigationContext)
|
|
|
{
|
|
|
navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
|
|
|
if (PDFViewer == null)
|
|
|
{
|
|
|
+ IsEmptyPanelVisibility = Visibility.Visible;
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
Bookmarklist = new ObservableCollection<CPDFBookmark>(PDFViewer.Document.GetBookmarkList().OrderBy(d => d.Title));
|
|
|
+ Bookmarklist.CollectionChanged += Bookmarklist_CollectionChanged;
|
|
|
if (Bookmarklist.Count < 1)
|
|
|
{
|
|
|
IsEmptyPanelVisibility = Visibility.Visible;
|