wabbajack/Wabbajack.App/Views/GuidedWebView.axaml.cs

23 lines
637 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System.Reactive.Disposables;
using System.Threading;
using ReactiveUI;
using Wabbajack.App.ViewModels;
using Wabbajack.Common;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.App.Views;
public partial class GuidedWebView : ScreenBase<GuidedWebViewModel>
2021-09-27 12:42:46 +00:00
{
2021-11-04 13:01:48 +00:00
public GuidedWebView() : base("Web View", false)
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
InitializeComponent();
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
this.WhenActivated(disposables =>
{
ViewModel.Browser = WebView;
this.Bind(ViewModel, vm => vm.Instructions, view => view.Instructions.Text)
.DisposeWith(disposables);
ViewModel.Run(CancellationToken.None).FireAndForget();
});
2021-09-27 12:42:46 +00:00
}
}