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);
 }
Beispiel #2
0
 private void RunDebugscript()
 {
     if (_JavascriptDebugScript == null)
     {
         _JavascriptDebugScript = _Injector.GetDebugScript();
     }
     WPFDoubleBrowserNavigator.ExcecuteJavascript(_JavascriptDebugScript);
 }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
 public void ShowDebugWindow()
 {
     RunDebugscript();
     WPFDoubleBrowserNavigator.ExcecuteJavascript(_Injector.GetDebugToogleScript());
     VmDebugging = !VmDebugging;
 }