mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
30 lines
786 B
C#
30 lines
786 B
C#
|
using System.Reactive.Disposables;
|
||
|
using System.Text;
|
||
|
using System.Threading;
|
||
|
using Avalonia;
|
||
|
using Avalonia.Controls;
|
||
|
using Avalonia.Markup.Xaml;
|
||
|
using CefNet;
|
||
|
using ReactiveUI;
|
||
|
using Wabbajack.App.ViewModels;
|
||
|
using Wabbajack.Common;
|
||
|
|
||
|
namespace Wabbajack.App.Views
|
||
|
{
|
||
|
public partial class GuidedWebView : ScreenBase<GuidedWebViewModel>
|
||
|
{
|
||
|
public GuidedWebView() : base(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();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|