public ApplicationViewModel(IMainWindowService mainWindowService) { _mainWindowService = mainWindowService; QuitCommand = ReactiveCommand.Create(ShutDown); ShowHideCommand = ReactiveCommand.Create(() => { if (IsMainWindowShown) { _mainWindowService.Hide(); } else { _mainWindowService.Show(); } }); ShowCommand = ReactiveCommand.Create(() => _mainWindowService.Show()); AboutCommand = ReactiveCommand.Create( () => MainViewModel.Instance.DialogScreen.To(new AboutViewModel(navigateBack: MainViewModel.Instance.DialogScreen.CurrentPage is not null)), canExecute: MainViewModel.Instance.DialogScreen.WhenAnyValue(x => x.CurrentPage).Select(x => x is null)); using var bitmap = AssetHelpers.GetBitmapAsset("avares://WalletWasabi.Fluent/Assets/WasabiLogo.ico"); TrayIcon = new WindowIcon(bitmap); }