internal void TestNavigation(Action <WPFDoubleBrowserNavigator, WindowTest> Test) { AssemblyHelper.SetEntryAssembly(); WebControl wc1 = null; WebControl wc2 = null; Func <Tuple <WebControl, WebControl> > Build = () => { wc1 = new WebControl() { Name = "WebControl1" }; wc2 = new WebControl() { Name = "WebControl2" }; return(new Tuple <WebControl, WebControl>(wc1, wc2)); }; using (var wcontext = BuildWindow(Build)) { WPFDoubleBrowserNavigator res = null; wcontext.RunOnUIThread(() => res = new WPFDoubleBrowserNavigator(wc1, wc2, _INavigationBuilder)); Test(res, wcontext); WebCore.QueueWork(() => res.Dispose()); } }
private void RunDebugscript() { if (_JavascriptDebugScript == null) { _JavascriptDebugScript = _Injector.GetDebugScript(); } WPFDoubleBrowserNavigator.ExcecuteJavascript(_JavascriptDebugScript); }
protected HTMLControlBase(IUrlSolver iIUrlSolver) { _IUrlSolver = iIUrlSolver; DebugWindow = new BasicRelayCommand(() => ShowDebugWindow()); DebugBrowser = new BasicRelayCommand(() => OpenDebugBrowser()); InitializeComponent(); _IWPFWebWindowFactory = HTMLEngineFactory.Engine.Resolve(HTMLEngine); _WPFDoubleBrowserNavigator = new WPFDoubleBrowserNavigator(this, _IUrlSolver); _WPFDoubleBrowserNavigator.OnFirstLoad += FirstLoad; }
public void ShowDebugWindow() { if (_VmDebugWindow != null) { _VmDebugWindow.Activate(); return; } _Injector.DebugVm(script => WPFDoubleBrowserNavigator.ExcecuteJavascript(script), (path, width, height, onCreate) => ShowHTMLWindow(path, width, height, debug => onCreate(WPFDoubleBrowserNavigator.HTMLWindow.MainFrame, debug))); if (_VmDebugWindow == null) { _DebugInformation.IsDebuggingVm = !_DebugInformation.IsDebuggingVm; } else { _DebugInformation.IsDebuggingVm = true; } }
internal void TestNavigation(Action<WPFDoubleBrowserNavigator, WindowTest> Test) { AssemblyHelper.SetEntryAssembly(); WebControl wc1 = null; WebControl wc2 = null; Func<Tuple<WebControl, WebControl>> Build = () => { wc1 = new WebControl() { Name = "WebControl1" }; wc2 = new WebControl() { Name = "WebControl2" }; return new Tuple<WebControl, WebControl>(wc1, wc2); }; using (var wcontext = BuildWindow(Build)) { WPFDoubleBrowserNavigator res = null; wcontext.RunOnUIThread(() => res = new WPFDoubleBrowserNavigator(wc1, wc2, _INavigationBuilder)); Test(res, wcontext); WebCore.QueueWork(() => res.Dispose()); } }
protected async Task <IHTMLBinding> NavigateAsyncBase(object iViewModel, string Id = null, JavascriptBindingMode iMode = JavascriptBindingMode.TwoWay) { return(await WPFDoubleBrowserNavigator.NavigateAsync(iViewModel, Id, iMode)); }
public void ShowDebugWindow() { RunDebugscript(); WPFDoubleBrowserNavigator.ExcecuteJavascript(_Injector.GetDebugToogleScript()); VmDebugging = !VmDebugging; }