更新 Dialog弹出框模式

This commit is contained in:
chfei committed 2026-10-12 18:43:32 +08:00
1 parent 74e59b4892
commit dd512a0dcb
13 files changed
+988 -2

No files matched your search

+5 -2
View File
@@ -1,4 +1,5 @@
using System;
using Prism.Services.Dialogs;
using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.Remoting.Contexts;
@@ -14,7 +15,7 @@ namespace _29WxOrderWpf.Common
/// <summary>
/// DialogWindow.xaml 的交互逻辑
/// </summary>
public partial class DialogWindow : Window
public partial class DialogWindow : Window, IDialogWindow
{
private readonly Style dialogWindowStyle;
private bool isConstructorSuccessful = false;
@@ -101,6 +102,8 @@ namespace _29WxOrderWpf.Common
private const int GWL_STYLE = -16;
private const int WS_MINIMIZEBOX = 0x00020000;
public IDialogResult Result { get; set; }
[DllImport("user32.dll")]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);