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

HaloPixelToolBox

【WinUI3】基于USB HID通讯的花再音响工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using HaloPixelToolBox.Client.ViewModels;
using XFEExtension.NetCore.WinUIHelper.Utilities.Helper;

namespace HaloPixelToolBox.Client.Views;

/// <summary>
/// 设置页面
/// </summary>
public sealed partial class SettingPage : Page
{
    public static SettingPage? Current { get; set; }
    public SettingPageViewModel ViewModel { get; set; } = new();
    public SettingPage()
    {
        Current = this;
        this.InitializeComponent();
        ViewModel.DialogService.RegisterDialog(cleanCacheContentDialog);
        ViewModel.SettingService.AddComboBox(appThemeComboBox, ProfileHelper.GetEnumProfileSaveFunc<ElementTheme>(), ProfileHelper.GetEnumProfileLoadFuncForComboBox());
        ViewModel.SettingService.Initialize();
        ViewModel.SettingService.RegisterEvents();
    }
}