Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using MakeMyProject.ViewModels;
- using ReactiveUI;
- using System.Threading;
- namespace SplashScreen.ViewModels;
- internal class SplashViewModel : ViewModelBase
- {
- private string _startUpMessage = "Application Is Loading. . .";
- public string StartUpMessage
- {
- get => _startUpMessage;
- set => this.RaiseAndSetIfChanged(ref _startUpMessage, value);
- }
- private CancellationTokenSource _cts = new CancellationTokenSource();
- public CancellationToken cancellationToken => _cts.Token;
- public void Cancel()
- {
- _cts.Cancel();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment