wabbajack/Wabbajack.App/Views/GuidedWebView.axaml.cs
Timothy Baldridge 47e01dcc34 More styling
2021-11-04 07:01:48 -06:00

23 lines
637 B
C#

using System.Reactive.Disposables;
using System.Threading;
using ReactiveUI;
using Wabbajack.App.ViewModels;
using Wabbajack.Common;
namespace Wabbajack.App.Views;
public partial class GuidedWebView : ScreenBase<GuidedWebViewModel>
{
public GuidedWebView() : base("Web View", false)
{
InitializeComponent();
this.WhenActivated(disposables =>
{
ViewModel.Browser = WebView;
this.Bind(ViewModel, vm => vm.Instructions, view => view.Instructions.Text)
.DisposeWith(disposables);
ViewModel.Run(CancellationToken.None).FireAndForget();
});
}
}