XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using System.Windows;
using XFEToolBox.Client.Installer.ViewModel.Windows;
using XFEToolBox.WpfCore.Windowing;

namespace XFEToolBox.Client.Installer.Views.Windows;

public partial class PopupWindow : Window
{
    public PopupWindowViewModel ViewModel { get; }
    public MessageBoxResult? Result { get; set; }

    public PopupWindow()
    {
        ViewModel = new PopupWindowViewModel(this);
        DataContext = ViewModel;
        InitializeComponent();
        WindowWorkAreaHelper.Attach(this);
    }

    private void CaptionBar_CloseRequested(object? sender, EventArgs e)
    {
        Result = MessageBoxResult.None;
        Close();
    }
}