ScreenAnnotationDialog.xaml.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using PDF_Master.CustomControl;
  2. using PDF_Master.EventAggregators;
  3. using PDF_Master.ViewModels.Dialog.BOTA;
  4. using Prism.Events;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows;
  11. using System.Windows.Controls;
  12. using System.Windows.Data;
  13. using System.Windows.Documents;
  14. using System.Windows.Input;
  15. using System.Windows.Media;
  16. using System.Windows.Media.Imaging;
  17. using System.Windows.Navigation;
  18. using System.Windows.Shapes;
  19. namespace PDF_Master.Views.Dialog.BOTA
  20. {
  21. /// <summary>
  22. /// ScreenAnnotationDialog.xaml 的交互逻辑
  23. /// </summary>
  24. public partial class ScreenAnnotationDialog : UserControl
  25. {
  26. public IEventAggregator events;
  27. public ScreenAnnotationDialog()
  28. {
  29. InitializeComponent();
  30. //events = eventAggregator;
  31. //this.events.GetEvent<ScreenAnnotationEvent>().Publish(new ScreenAnnotationArgs() { Unicode = App.mainWindowViewModel.SelectedItem.Unicode, Arrys = objects });
  32. }
  33. private void UserControl_Loaded(object sender, RoutedEventArgs e)
  34. {
  35. Object[] objects = new Object[]{
  36. BtnHighlight ,
  37. BtnFreeHand ,
  38. BtnAnnotSticky ,
  39. BtnAnnotStamp ,
  40. BtnSharpLine ,
  41. BtnSharpArrow ,
  42. BtnAnnotCircle,
  43. BtnAnnotSquare,
  44. BtnAnnotFreeText,
  45. BtnAnnotStrikeout,
  46. BtnUnderLine,
  47. BtnAnnotLink,
  48. ListColor,
  49. ListAuthor
  50. };
  51. (this.DataContext as ScreenAnnotationDialogViewModel).LoadedCommand.Execute(objects);
  52. }
  53. }
  54. }