1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using PDF_Master.CustomControl;
- using PDF_Master.EventAggregators;
- using PDF_Master.ViewModels.Dialog.BOTA;
- using Prism.Events;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
- namespace PDF_Master.Views.Dialog.BOTA
- {
- /// <summary>
- /// ScreenAnnotationDialog.xaml 的交互逻辑
- /// </summary>
- public partial class ScreenAnnotationDialog : UserControl
- {
- public IEventAggregator events;
- public ScreenAnnotationDialog()
- {
- InitializeComponent();
- //events = eventAggregator;
- //this.events.GetEvent<ScreenAnnotationEvent>().Publish(new ScreenAnnotationArgs() { Unicode = App.mainWindowViewModel.SelectedItem.Unicode, Arrys = objects });
- }
- private void UserControl_Loaded(object sender, RoutedEventArgs e)
- {
- Object[] objects = new Object[]{
- BtnHighlight ,
- BtnFreeHand ,
- BtnAnnotSticky ,
- BtnAnnotStamp ,
- BtnSharpLine ,
- BtnSharpArrow ,
- BtnAnnotCircle,
- BtnAnnotSquare,
- BtnAnnotFreeText,
- BtnAnnotStrikeout,
- BtnUnderLine,
- BtnAnnotLink,
- ListColor,
- ListAuthor
- };
- (this.DataContext as ScreenAnnotationDialogViewModel).LoadedCommand.Execute(objects);
- }
- }
- }
|