2019-12-07 00:13:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-12-07 05:40:57 +00:00
|
|
|
|
using ReactiveUI;
|
2019-12-07 00:13:16 +00:00
|
|
|
|
using ReactiveUI.Fody.Helpers;
|
|
|
|
|
using Wabbajack.Lib;
|
|
|
|
|
using Xilium.CefGlue.Common;
|
|
|
|
|
using Xilium.CefGlue.WPF;
|
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
public class WebBrowserVM : ViewModel
|
|
|
|
|
{
|
|
|
|
|
[Reactive]
|
|
|
|
|
public string Instructions { get; set; }
|
|
|
|
|
|
2019-12-07 05:40:57 +00:00
|
|
|
|
public WpfCefBrowser Browser { get; }
|
2019-12-07 00:13:16 +00:00
|
|
|
|
|
2019-12-07 05:40:57 +00:00
|
|
|
|
[Reactive]
|
|
|
|
|
public IReactiveCommand BackCommand { get; set; }
|
|
|
|
|
public WebBrowserVM(string url = "http://www.wabbajack.org")
|
2019-12-07 00:13:16 +00:00
|
|
|
|
{
|
2019-12-07 05:40:57 +00:00
|
|
|
|
Browser = new WpfCefBrowser();
|
|
|
|
|
Browser.Address = url;
|
2019-12-07 00:13:16 +00:00
|
|
|
|
Instructions = "Wabbajack Web Browser";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|