Exemplo n.º 1
0
        public MainWindow(string title = null, string address = null)
        {
            Title = title ?? Title;

            EmbeddedBrowser.Init();
            InitializeComponent();
            Browser.Address = address;
        }
Exemplo n.º 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";
 }