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
{
///
/// ScreenAnnotationDialog.xaml 的交互逻辑
///
public partial class ScreenAnnotationDialog : UserControl
{
public IEventAggregator events;
public ScreenAnnotationDialog()
{
InitializeComponent();
//events = eventAggregator;
//this.events.GetEvent().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);
}
}
}