123456789101112131415161718192021222324252627 |
- using Prism.Services.Dialogs;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- namespace PDF_Master.CustomControl
- {
- /// <summary>
- /// 为解决 拖拽打开加密文档时,解密弹窗偶现不属于主窗体的问题,重写Prism dialog
- /// </summary>
- public class DialogWindow : Window, IDialogWindow
- {
- public IDialogResult Result { get; set; }
- public DialogWindow()
- {
- if(Owner==null)
- {
- Owner = Application.Current.MainWindow;
- }
- }
- }
- }
|