Пример #1
0
        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));
        }
Пример #2
0
 private WebBrowserVM(string url = "http://www.wabbajack.org")
 {
     IsBackEnabled = IsBackEnabledSubject.StartWith(true);
     Instructions  = "Wabbajack Web Browser";
 }