Inheritance: IDisposable
        public WPFWindowWrapper(WpfThread wpfThread, Func<System.Windows.Window> ifactory = null) 
        {
            _wpfThread = wpfThread;
            Func<System.Windows.Window> basic =() => new System.Windows.Window();
            _factory = ifactory ?? basic;

            _wpfThread.Dispatcher.Invoke(InitWindow);
        }
Exemplo n.º 2
0
        public WPFWindowWrapper(WpfThread wpfThread, Func <System.Windows.Window> ifactory = null)
        {
            _wpfThread = wpfThread;
            Func <System.Windows.Window> basic = () => new System.Windows.Window();

            _factory = ifactory ?? basic;

            _wpfThread.Dispatcher.Invoke(InitWindow);
        }
        private void Register()
        {
            if (_IsInit)
                return;

            WpfThread = WpfThread.GetWpfThread();
            WpfThread.AddRef();
            WpfThread.Dispatcher.Invoke(DoRegister);
            WpfThread.OnThreadEnded += OnThreadEnded;
            _IsInit = true;
        }
 protected WindowContextProvider() 
 {
     _WpfThread = WpfThread.GetWpfThread();
     _WpfThread.AddRef();
 }
 public AwesomiumWindowlessHTMLEngineFactory()
 {
     _WpfThread = WpfThread.GetWpfThread();
     _WpfThread.AddRef();
     _EndTaskCompletionSource = new TaskCompletionSource<object>();
 }
 internal ChromiumFxWindowlessHtmlEngine(WpfThread wpfThread, Task<ChromiumFxWebView> chromiumFxWebViewTask) 
 {
     _ChromiumFXWebViewTask = chromiumFxWebViewTask;
     _WpfThread = wpfThread;
 }
 public ChromiumFXWindowLessHTMLEngineProvider(ITestHtmlProvider htmlProvider)
 {
     _HtmlProvider = htmlProvider;
     _WpfThread = WpfThread.GetWpfThread();
     _WpfThread.AddRef();
 }
 public CefGlueWindowlessSharedJavascriptEngineFactory(ITestHtmlProvider htmlProvider)
 {
     _HtmlProvider = htmlProvider;
     _WpfThread = WpfThread.GetWpfThread();
     _WpfThread.AddRef();
 }
 public WpfThreadTest()
 {
     _wpfThread = new WpfThread();
 }