You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
using MyAvaloniaApp.ViewModels.Base;
|
|
using ReactiveUI;
|
|
|
|
namespace MyAvaloniaApp.ViewModels.Pages;
|
|
|
|
/// <summary>
|
|
/// 帮助中心页面ViewModel
|
|
/// </summary>
|
|
public class HelpPageViewModel : RoutableViewModel
|
|
{
|
|
private string _welcomeMessage = "欢迎使用帮助中心!";
|
|
private string _version = "v1.0.0";
|
|
private string _lastUpdate = "2025年1月10日";
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
/// <param name="hostScreen">宿主 Screen</param>
|
|
public HelpPageViewModel(IScreen hostScreen) : base(hostScreen, "Help")
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 欢迎消息
|
|
/// </summary>
|
|
public string WelcomeMessage
|
|
{
|
|
get => _welcomeMessage;
|
|
set => this.RaiseAndSetIfChanged(ref _welcomeMessage, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 版本信息
|
|
/// </summary>
|
|
public string Version
|
|
{
|
|
get => _version;
|
|
set => this.RaiseAndSetIfChanged(ref _version, value);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 最后更新时间
|
|
/// </summary>
|
|
public string LastUpdate
|
|
{
|
|
get => _lastUpdate;
|
|
set => this.RaiseAndSetIfChanged(ref _lastUpdate, value);
|
|
}
|
|
}
|
|
|