LinkAnnotProperty.xaml.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using ComPDFKitViewer.AnnotEvent;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace PDF_Master.Views.PropertyPanel.AnnotPanel
  17. {
  18. /// <summary>
  19. /// LinkAnnotProperty.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class LinkAnnotProperty : UserControl
  22. {
  23. public int TotalPage { get; set; }
  24. public LinkAnnotProperty()
  25. {
  26. InitializeComponent();
  27. }
  28. private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
  29. {
  30. Keyboard.ClearFocus();
  31. }
  32. private void PageNumText_LostFocus(object sender, RoutedEventArgs e)
  33. {
  34. }
  35. //internal void SetTextBoxEnableOrNot(bool enable, int totalPage)
  36. //{
  37. // TotalPage = totalPage;
  38. // PageNumText.Text = string.Empty;
  39. // PageWebText.Text = string.Empty;
  40. // PageMailText.Text = string.Empty;
  41. // PageNumText.IsEnabled = enable;
  42. // if (PageNumText.IsEnabled == true)
  43. // {
  44. // //defaultPageNumText.Text = string.Format($"1-{totalPage}页");
  45. // //PageNumText.PlaceholderText = string.Format($"1-{totalPage}页");
  46. // PageNumText.PlaceHoldText = string.Format($"1-{totalPage}页");
  47. // }
  48. // else
  49. // {
  50. // //defaultPageNumText.Text = "Enter target page";
  51. // //PageNumText.PlaceholderText = "Enter target page";
  52. // PageNumText.PlaceHoldText = "Enter target page";
  53. // }
  54. // PageNumText.IsError = false;
  55. // //BorderPageNumText.Background = enable ? Brushes.White : Brushes.LightGray;
  56. // PageWebText.IsEnabled = enable;
  57. // BorderPageWebText.Background = enable ? Brushes.White : Brushes.LightGray;
  58. // PageMailText.IsEnabled = enable;
  59. // BorderPageMailText.Background = enable ? Brushes.White : Brushes.LightGray;
  60. // BtnGOorBack.IsEnabled = false;
  61. // //BtnLocation.IsEnabled = enable;
  62. //}
  63. }
  64. }