Example #1
0
        public MainWindow(string title = null, string address = null)
        {
            Title = title ?? Title;

            EmbeddedBrowser.Init();
            InitializeComponent();
            Browser.Address = address;
        }
Example #2
0
 public MainWindow(string title, Func <IDictionary <string, object>, Task> appFunc)
 {
     Title = title ?? Title;
     EmbeddedBrowser.Init(new[]
     {
         new CefCustomScheme
         {
             SchemeHandlerFactory = new OwinSchemeHandlerFactory(appFunc),
             SchemeName           = "http"
         }
     });
     InitializeComponent();
     Browser.Address = "http://localhost";
 }