TextFieldProperty.xaml.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using PDF_Office.ViewModels.Form;
  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_Office.Views.Form
  17. {
  18. /// <summary>
  19. /// TextFieldProperty.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class TextFieldProperty : UserControl
  22. {
  23. public TextFieldPropertyViewModel ViewModel =>DataContext as TextFieldPropertyViewModel;
  24. public TextFieldProperty()
  25. {
  26. InitializeComponent();
  27. }
  28. private void EditMenuItem_Click(object sender, RoutedEventArgs e)
  29. {
  30. var Btnitem = sender as MenuItem;
  31. if (Btnitem == null) return;
  32. if(ViewModel != null)
  33. {
  34. ViewModel.ResetColorCommand?.Execute(Btnitem);
  35. }
  36. }
  37. }
  38. }