using XFEExtension.NetCore.WinUIHelper.Utilities.Helper; using XFENewsApplication.Models; namespace XFENewsApplication.Views; /// /// ÉèÖÃÒ³Ãæ /// 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(), ProfileHelper.GetEnumProfileLoadFuncForComboBox()); ViewModel.SettingService.AddComboBox(historySaveModeComboBox, ProfileHelper.GetEnumProfileSaveFunc(), ProfileHelper.GetEnumProfileLoadFuncForComboBox()); ViewModel.SettingService.Initialize(); ViewModel.SettingService.RegisterEvents(); } }