44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
![]() |
using DryIoc;
|
|||
|
using Prism.Dialogs;
|
|||
|
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.Interop;
|
|||
|
using System.Windows.Media;
|
|||
|
using System.Windows.Media.Imaging;
|
|||
|
using System.Windows.Navigation;
|
|||
|
using System.Windows.Shapes;
|
|||
|
|
|||
|
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 ; }
|
|||
|
}
|
|||
|
}
|