private void RunKoView() { if (_KoView == null) { using (Stream stream = typeof(IHTMLBinding).Assembly. GetManifestResourceStream("MVVM.HTML.Core.Navigation.javascript.ko-view.min.js")) { using (StreamReader reader = new StreamReader(stream)) { _KoView = reader.ReadToEnd(); } } } _WPFDoubleBrowserNavigator.ExcecuteJavascript(_KoView); }
private void RunDebugscript() { if (_JavascriptDebugScript == null) { _JavascriptDebugScript = _Injector.GetDebugScript(); } WPFDoubleBrowserNavigator.ExcecuteJavascript(_JavascriptDebugScript); }
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; } }
public void ShowDebugWindow() { RunDebugscript(); WPFDoubleBrowserNavigator.ExcecuteJavascript(_Injector.GetDebugToogleScript()); VmDebugging = !VmDebugging; }