private void CreateOpenfinWindow()
        {
            var win = new OfWindow();

            var embeddedView = new WinForm.EmbeddedView();
            win.Controls.Add(embeddedView);

            embeddedView.Initialize(RuntimeOptions, OfApplication, new Openfin.Desktop.WindowOptions(Guid.NewGuid().ToString(), "http://cdn.openfin.co/embed-web/"));

            win.Show();
        }
 private void CreateOpenfinWindow()
 {
     var win = new OfWindow();
     win.Show();
     win.OpenFinEmbeddedView.Initialize(RuntimeOptions, OfApplication, new Openfin.Desktop.WindowOptions(Guid.NewGuid().ToString(), "http://cdn.openfin.co/embed-web/"));
     Openfin.WPF.Utils.InvokeOnUiThreadIfRequired(win, () =>
     {
         win.Closing += (s, args) =>
         {
             win.OpenFinEmbeddedView.OpenfinWindow.close();
         };
     });
 }