Go back button in browser

This commit is contained in:
Timothy Baldridge 2022-05-21 11:24:15 -06:00
parent 36091920c1
commit 5cdd99723d

View File

@ -48,6 +48,11 @@ public partial class BrowserWindow : MetroWindow
Clipboard.SetText(vm.Address.ToString()); Clipboard.SetText(vm.Address.ToString());
}); });
this.BackButton.Command = ReactiveCommand.Create(() =>
{
Browser.GoBack();
});
vm.RunWrapper(CancellationToken.None) vm.RunWrapper(CancellationToken.None)
.ContinueWith(_ => Dispatcher.Invoke(Close)); .ContinueWith(_ => Dispatcher.Invoke(Close));
} }