using SpaceEngineersBlueprintEditor.ViewModels;
using XFEExtension.NetCore.WinUIHelper.Utilities;
using XFEExtension.NetCore.WinUIHelper.Utilities.Helper;
namespace SpaceEngineersBlueprintEditor.Views;
///
/// ±à¼Æ÷µÄÉèÖÃÒ³Ãæ
///
public sealed partial class SettingPage : Page
{
public SettingPageViewModel ViewModel { get; set; } = new();
public static SettingPage? Current { get; set; }
public SettingPage()
{
PageManager.AddOrUpdateCurrentPage(Current = this);
this.InitializeComponent();
ViewModel.SettingService.AddComboBox(appThemeComboBox, ProfileHelper.GetEnumProfileSaveFunc(), ProfileHelper.GetEnumProfileLoadFuncForComboBox());
ViewModel.SettingService.AddComboBox(navigationStyleComboBox, ProfileHelper.GetEnumProfileSaveFunc(), ProfileHelper.GetEnumProfileLoadFuncForComboBox());
ViewModel.SettingService.Initialize();
ViewModel.SettingService.RegisterEvents();
}
}