mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 09:36:09 +08:00
ui process update
This commit is contained in:
@@ -9,20 +9,55 @@ namespace System.Application.UI.ViewModels
|
||||
{
|
||||
public class MainWindowViewModel : WindowViewModel
|
||||
{
|
||||
bool mTopmost;
|
||||
#region 更改通知
|
||||
|
||||
bool mTopmost;
|
||||
public bool Topmost
|
||||
{
|
||||
get => mTopmost;
|
||||
set => this.RaiseAndSetIfChanged(ref mTopmost, value);
|
||||
}
|
||||
public SettingsPageViewModel SettingsPage { get; }
|
||||
|
||||
private TabItemViewModel _SelectedItem;
|
||||
public TabItemViewModel SelectedItem
|
||||
{
|
||||
get => _SelectedItem;
|
||||
set => this.RaiseAndSetIfChanged(ref _SelectedItem, value);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public StartPageViewModel StartPage { get; }
|
||||
public GameListPageViewModel GameListPage { get; }
|
||||
public SteamAccountPageViewModel SteamAccountPage { get; }
|
||||
|
||||
|
||||
public IList<TabItemViewModel> TabItems { get; set; }
|
||||
|
||||
|
||||
|
||||
public MainWindowViewModel() : base()
|
||||
{
|
||||
Title = ThisAssembly.AssemblyTrademark;
|
||||
SettingsPage = new SettingsPageViewModel();
|
||||
|
||||
this.TabItems = new List<TabItemViewModel>
|
||||
{
|
||||
(this.StartPage = new StartPageViewModel().AddTo(this)),
|
||||
(this.SteamAccountPage = new SteamAccountPageViewModel().AddTo(this)),
|
||||
(this.GameListPage = new GameListPageViewModel().AddTo(this)),
|
||||
|
||||
|
||||
|
||||
#region SystemTab
|
||||
SettingsPageViewModel.Instance,
|
||||
AboutPageViewModel.Instance,
|
||||
#if DEBUG
|
||||
new DebugPageViewModel().AddTo(this),
|
||||
#endif
|
||||
#endregion
|
||||
};
|
||||
|
||||
this.SelectedItem = this.TabItems.First();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user