mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 04:41:15 +08:00
主题设置完善
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
using ReactiveUI;
|
||||
using System.Application.UI.Resx;
|
||||
|
||||
namespace System.Application.UI.ViewModels
|
||||
{
|
||||
public class ToastMessageViewModel : ViewModelBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 吐司消息标题
|
||||
/// </summary>
|
||||
private string? _Title;
|
||||
public string? Title
|
||||
{
|
||||
get => _Title;
|
||||
set => this.RaiseAndSetIfChanged(ref _Title, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 消息
|
||||
/// </summary>
|
||||
private string? _Message;
|
||||
public string? Message
|
||||
{
|
||||
get => _Message;
|
||||
set => this.RaiseAndSetIfChanged(ref _Message, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示状态
|
||||
/// </summary>
|
||||
private bool _IsVisible;
|
||||
public bool IsVisible
|
||||
{
|
||||
get => _IsVisible;
|
||||
set => this.RaiseAndSetIfChanged(ref _IsVisible, value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user