Files
SteamTools/System.Application.SteamTools.Client.Desktop/UI/ViewModels/Pages/Settings/SettingsPageViewModel.cs
T
rmbgame 2f2c671e46 界面进度更新
多语言功能完善
菜单列表完善
主题切换初步实现
2021-03-02 09:07:08 +08:00

36 lines
914 B
C#

using ReactiveUI;
using System.Application.UI.Resx;
using System.Collections.Generic;
using System.Linq;
namespace System.Application.UI.ViewModels
{
public class SettingsPageViewModel : TabItemViewModel
{
public static SettingsPageViewModel Instance { get; } = new SettingsPageViewModel();
public override string Name
{
get => AppResources.Settings;
protected set { throw new NotImplementedException(); }
}
public SettingsPageViewModel()
{
}
KeyValuePair<string, string> _CurrentLanguage = R.Languages.First();
public KeyValuePair<string, string> CurrentLanguage
{
get => _CurrentLanguage;
set
{
this.RaiseAndSetIfChanged(ref _CurrentLanguage, value);
R.ChangeLanguage(_CurrentLanguage.Key);
}
}
}
}