public BackNavigatingVM(MainWindowVM mainWindowVM) { IsBackEnabled = IsBackEnabledSubject.StartWith(true); BackCommand = ReactiveCommand.Create( execute: () => Utils.CatchAndLog(() => { mainWindowVM.NavigateTo(NavigateBackTarget); Unload(); }), canExecute: this.ConstructCanNavigateBack() .ObserveOnGuiThread()); _IsActive = this.ConstructIsActive(mainWindowVM) .ToGuiProperty(this, nameof(IsActive)); }
private WebBrowserVM(string url = "http://www.wabbajack.org") { IsBackEnabled = IsBackEnabledSubject.StartWith(true); Instructions = "Wabbajack Web Browser"; }