XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
UTF-8
using CommunityToolkit.Mvvm.ComponentModel;
using System.Windows;
using System.Windows.Media;
using SpaceEngineersBlueprintEditor.Installer.Views.Windows;

namespace SpaceEngineersBlueprintEditor.Installer.ViewModel.Windows;

public partial class PopupWindowViewModel(PopupWindow viewPage) : ViewModelBase
{
    [ObservableProperty]
    object? content;
    [ObservableProperty]
    Brush popupBackground = new SolidColorBrush(Color.FromRgb(152, 152, 231));
    [ObservableProperty]
    Brush popupBorder = new SolidColorBrush(Color.FromRgb(80, 80, 183));
    [ObservableProperty]
    Brush popupContentBackground = new SolidColorBrush(Colors.White);
    [ObservableProperty]
    Thickness popupThickness = new(2);
    [ObservableProperty]
    Visibility closeButtonVisibility = Visibility.Visible;
    [ObservableProperty]
    Visibility moveButtonVisibility = Visibility.Visible;

    public PopupWindow ViewPage { get; set; } = viewPage;
}