public void ShowDebugWindow() { if (_VmDebugWindow != null) { var state = _VmDebugWindow.WindowState; _VmDebugWindow.WindowState = (state == WindowState.Minimized) ? WindowState.Normal : state; _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; } }
protected async Task <IHtmlBinding> NavigateAsyncBase(object iViewModel, string Id = "", JavascriptBindingMode iMode = JavascriptBindingMode.TwoWay) { return(await WpfDoubleBrowserNavigator.NavigateAsync(iViewModel, Id, iMode)); }