Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 private WebBrowserVM(string url = "http://www.wabbajack.org")
 {
     IsBackEnabled = IsBackEnabledSubject.StartWith(true);
     Instructions  = "Wabbajack Web Browser";
 }