mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-23 18:38:04 +08:00
28 lines
676 B
C#
28 lines
676 B
C#
using ReactiveUI;
|
|
|
|
namespace System.Application.UI.ViewModels
|
|
{
|
|
public class WindowViewModel : ViewModelBase
|
|
{
|
|
string title = string.Empty;
|
|
public string Title
|
|
{
|
|
get => title;
|
|
set => this.RaiseAndSetIfChanged(ref title, value);
|
|
}
|
|
|
|
ViewModelBase? _Toast;
|
|
public ViewModelBase? Toast
|
|
{
|
|
get => _Toast;
|
|
set => this.RaiseAndSetIfChanged(ref _Toast, value);
|
|
}
|
|
|
|
public bool IsInitialized { get; set; }
|
|
|
|
protected void InvokeOnUIDispatcher(Action action)
|
|
{
|
|
MainThreadDesktop.BeginInvokeOnMainThread(action);
|
|
}
|
|
}
|
|
} |