PDFToolExpendItem.xaml.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace PDF_Master.Views.HomePanel.PDFTools
  16. {
  17. /// <summary>
  18. /// PDFToolExpendItem.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class PDFToolExpendItem : UserControl
  21. {
  22. public PDFToolExpendItem()
  23. {
  24. InitializeComponent();
  25. this.Loaded += usercontrol_Loaded;
  26. }
  27. private void usercontrol_Loaded(object sender, RoutedEventArgs e)
  28. {
  29. }
  30. private void InitContent()
  31. {
  32. }
  33. public string IconPath
  34. {
  35. get
  36. {
  37. return (string)GetValue(IconPathProperty);
  38. }
  39. set
  40. {
  41. SetValue(IconPathProperty, value);
  42. }
  43. }
  44. public static readonly DependencyProperty IconPathProperty = DependencyProperty.Register("IconPath", typeof(string), typeof(PDFToolExpendItem), new PropertyMetadata(string.Empty));
  45. public string ToolTitile
  46. {
  47. get
  48. {
  49. return (string)GetValue(ToolTitileProperty);
  50. }
  51. set
  52. {
  53. SetValue(ToolTitileProperty, value);
  54. }
  55. }
  56. public static readonly DependencyProperty ToolTitileProperty = DependencyProperty.Register("ToolTitile", typeof(string), typeof(PDFToolExpendItem), new PropertyMetadata(string.Empty));
  57. public string ToolInfo
  58. {
  59. get
  60. {
  61. return (string)GetValue(ToolInfoProperty);
  62. }
  63. set
  64. {
  65. SetValue(ToolInfoProperty, value);
  66. }
  67. }
  68. public static readonly DependencyProperty ToolInfoProperty = DependencyProperty.Register("ToolInfo", typeof(string), typeof(PDFToolExpendItem), new PropertyMetadata(string.Empty));
  69. }
  70. }