mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 01:16:17 +08:00
2f2c671e46
多语言功能完善 菜单列表完善 主题切换初步实现
36 lines
914 B
C#
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);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
} |