Example #1
0
 public WPFHTMLWindowProvider(IWPFWebWindow wpfWebWindow, Neutronium.WPF.Internal.HTMLControlBase htmlControlBase)
 {
     WPFWebWindow                  = wpfWebWindow;
     _HTMLControlBase              = htmlControlBase;
     _UIElement                    = WPFWebWindow.UIElement;
     WPFWebWindow.DebugToolOpened += _WPFWebWindow_DebugToolOpened;
 }
Example #2
0
 public HTMLSimpleWindow(IWPFWebWindow wpfWebWindow, string path, Func <IWebView, IDisposable> onWebViewCreated = null)
 {
     _WPFWebWindow     = wpfWebWindow;
     _path             = path;
     _OnWebViewCreated = onWebViewCreated;
     InitializeComponent();
     this.Loaded += Window_Loaded;
 }
        IHTMLWindowProvider IWebViewLifeCycleManager.Create()
        {
            if (_IWPFWebWindowFactory == null)
            {
                _IWPFWebWindowFactory = HTMLEngineFactory.Engine.Resolve(HTMLEngine);

                if (_IWPFWebWindowFactory == null)
                {
                    throw ExceptionHelper.Get(string.Format("Not able to find WebEngine {0}", HTMLEngine));
                }
            }

            IWPFWebWindow webwindow = _IWPFWebWindowFactory.Create();

            var ui = webwindow.UIElement;

            Grid.SetColumnSpan(ui, 2);
            Grid.SetRowSpan(ui, 2);
            Panel.SetZIndex(ui, 0);
            this.MainGrid.Children.Add(ui);
            return(new WPFHTMLWindowProvider(webwindow, this));
        }
 public WPFHTMLWindowProvider(IWPFWebWindow iIWPFWebWindow, Neutronium.WPF.Internal.HTMLControlBase iHTMLControlBase)
 {
     _IWPFWebWindow   = iIWPFWebWindow;
     _HTMLControlBase = iHTMLControlBase;
     _UIElement       = _IWPFWebWindow.UIElement;
 }
 public WPFHTMLWindowProvider(IWPFWebWindow iIWPFWebWindow, HTMLControlBase iHTMLControlBase)
 {
     _IWPFWebWindow   = iIWPFWebWindow;
     _HTMLControlBase = iHTMLControlBase;
     _UIElement       = _IWPFWebWindow.UIElement;
 }
Example #6
0
 public WPFHTMLWindowProvider(IWPFWebWindow wpfWebWindow, Neutronium.WPF.Internal.HTMLControlBase htmlControlBase)
 {
     _WPFWebWindow    = wpfWebWindow;
     _HTMLControlBase = htmlControlBase;
     _UIElement       = _WPFWebWindow.UIElement;
 }
 public WPFHTMLWindowProvider(IWPFWebWindow iIWPFWebWindow, Neutronium.WPF.Internal.HTMLControlBase iHTMLControlBase)
 {
     _IWPFWebWindow = iIWPFWebWindow;
     _HTMLControlBase = iHTMLControlBase;
     _UIElement = _IWPFWebWindow.UIElement;
 }
 public WPFHTMLWindowProvider(IWPFWebWindow iIWPFWebWindow, HTMLControlBase iHTMLControlBase)
 {
     _IWPFWebWindow = iIWPFWebWindow;
     _HTMLControlBase = iHTMLControlBase;
     _UIElement = _IWPFWebWindow.UIElement;
 }