FreetextAnnotProperty.xaml.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using PDF_Master.CustomControl;
  2. using PDF_Master.ViewModels.PropertyPanel.AnnotPanel;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Controls.Primitives;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. namespace PDF_Master.Views.PropertyPanel.AnnotPanel
  19. {
  20. /// <summary>
  21. /// FreetextAnnotProperty.xaml 的交互逻辑
  22. /// </summary>
  23. public partial class FreetextAnnotProperty : UserControl
  24. {
  25. private FreetextAnnotPropertyViewModel ViewModel => DataContext as FreetextAnnotPropertyViewModel;
  26. public FreetextAnnotProperty()
  27. {
  28. InitializeComponent();
  29. cusColor.SelectedColorHandler += cusColor_SelectedColor;
  30. }
  31. private void cusColor_SelectedColor(object sender, Color e)
  32. {
  33. if (ViewModel != null)
  34. {
  35. ViewModel.SelectedFillColorCommand?.Execute(e);
  36. }
  37. }
  38. }
  39. }