PDFToolItem.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using System.Windows.Input;
  5. using System.Windows.Media;
  6. using System.Windows.Media.Imaging;
  7. namespace PDF_Master.Views.HomePanel.PDFTools
  8. {
  9. /// <summary>
  10. /// PDFToolItem.xaml 的交互逻辑
  11. /// </summary>
  12. public partial class PDFToolItem : UserControl
  13. {
  14. public PDFToolItem()
  15. {
  16. InitializeComponent();
  17. this.Loaded += usercontrol_Loaded;
  18. }
  19. private void usercontrol_Loaded(object sender, RoutedEventArgs e)
  20. {
  21. }
  22. private void InitContent()
  23. {
  24. }
  25. public string IconPath
  26. {
  27. get
  28. {
  29. return (string)GetValue(IconPathProperty);
  30. }
  31. set
  32. {
  33. SetValue(IconPathProperty, value);
  34. }
  35. }
  36. public static readonly DependencyProperty IconPathProperty = DependencyProperty.Register("IconPath", typeof(string), typeof(PDFToolItem), new PropertyMetadata(string.Empty));
  37. }
  38. }