2025-09-04 18:28:02 +08:00
|
|
|
|
using Prism.Services.Dialogs;
|
2025-08-15 16:34:31 +08:00
|
|
|
|
using System.Windows;
|
|
|
|
|
using System.Windows.Interop;
|
|
|
|
|
|
|
|
|
|
namespace SWS.CAD.Views.Dialog
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for CustomDialogWindow.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class CustomDialogWindow : Window, IDialogWindow
|
|
|
|
|
{
|
|
|
|
|
public CustomDialogWindow()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
// 设置窗口样式(可选)
|
|
|
|
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
|
|
|
|
ResizeMode = ResizeMode.NoResize;
|
|
|
|
|
|
|
|
|
|
//任务栏图标不显示
|
|
|
|
|
ShowInTaskbar = false;
|
|
|
|
|
// 设置对话框所有者
|
|
|
|
|
var helper = new WindowInteropHelper(this);
|
|
|
|
|
helper.Owner = Bricscad.ApplicationServices.Application.MainWindow.Handle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IDialogResult Result { get ; set ; }
|
|
|
|
|
}
|
|
|
|
|
}
|