private void ToggleHtmlDoc() { // Execute the NextView command. It may fail for non-designable HTML docs (e.g. XSLT). if (!this.ExecuteVsCommand("View.NextView")) { // If NextView failed, then try to manually change the tab. Window window = this.document.ActiveWindow; if (window != null) { HTMLWindow html = window.Object as HTMLWindow; if (html != null) { vsHTMLTabs tabCurrent = html.CurrentTab; if (tabCurrent == vsHTMLTabs.vsHTMLTabsSource) { html.CurrentTab = vsHTMLTabs.vsHTMLTabsDesign; } else { html.CurrentTab = vsHTMLTabs.vsHTMLTabsSource; } } } } }
public MainWindow() { WebConfig webC = new WebConfig(); webC.RemoteDebuggingPort = 8001; webC.RemoteDebuggingHost = "127.0.0.1"; WebCore.Initialize(webC); InitializeComponent(); HTMLWindow.UseINavigable = true; SetUpRoute(HTMLWindow.NavigationBuilder); var datacontext = new MVVMAwesomium.ViewModel.Example.ForNavigation.Couple(); var my = new MVVMAwesomium.ViewModel.Example.ForNavigation.Person() { Name = "O Monstro", LastName = "Desmaisons", Local = new MVVMAwesomium.ViewModel.Example.Local() { City = "Florianopolis", Region = "SC" } }; my.Couple = datacontext; datacontext.One = my; HTMLWindow.NavigateAsync(datacontext); }
public MainWindow() { InitializeComponent(); SetUpRoute(HTMLWindow.NavigationBuilder); var datacontext = new Nav(); HTMLWindow.NavigateAsync(datacontext).DoNotWait(); }
internal void TestNavigation(Action <INavigationBuilder, HTMLWindow, WindowTest> Test, bool iDebug = false, bool iManageLifeCycle = true) { AssemblyHelper.SetEntryAssembly(); HTMLWindow wc1 = null; Func <HTMLWindow> iWebControlFac = () => { wc1 = new HTMLWindow(); wc1.IsDebug = iDebug; return(wc1); }; using (var wcontext = BuildWindow(iWebControlFac, iManageLifeCycle)) { Test(wc1.NavigationBuilder, wc1, wcontext); } }
internal void TestNavigation(Action<INavigationBuilder, HTMLWindow, WindowTest> Test, bool iDebug = false, bool iManageLifeCycle = true) { AssemblyHelper.SetEntryAssembly(); HTMLWindow wc1 = null; Func<HTMLWindow> iWebControlFac = () => { wc1 = new HTMLWindow(); wc1.IsDebug = iDebug; return wc1; }; using (var wcontext = BuildWindow(iWebControlFac, iManageLifeCycle)) { Test(wc1.NavigationBuilder, wc1, wcontext); } }
internal void TestNavigation(Action<HTMLWindow, WindowTest> Test) { AssemblyHelper.SetEntryAssembly(); HTMLWindow wc1 = null; Func<HTMLWindow> Build = () => { wc1 = new HTMLWindow(_INavigationBuilder); return wc1; }; using (var wcontext = BuildWindow(Build)) { Test(wc1, wcontext); } }
public MainWindow() { InitializeComponent(); HTMLWindow.UseINavigable = true; SetUpRoute(HTMLWindow.NavigationBuilder); var datacontext = new MVVMAwesomium.ViewModel.Example.ForNavigation.Couple(); var my = new MVVMAwesomium.ViewModel.Example.ForNavigation.Person() { Name = "O Monstro", LastName = "Desmaisons", Local = new MVVMAwesomium.ViewModel.Example.Local() { City = "Florianopolis", Region = "SC" } }; my.Couple = datacontext; datacontext.One = my; HTMLWindow.NavigateAsync(datacontext); }
internal void TestNavigation(Action <HTMLWindow, WindowTest> Test, bool Cef = true) { if (Cef) { HTMLEngineFactory.Engine.Register(new CefGlueWPFWebWindowFactory()); } AssemblyHelper.SetEntryAssembly(); HTMLWindow wc1 = null; Func <HTMLWindow> Build = () => { wc1 = new HTMLWindow(_INavigationBuilder); return(wc1); }; using (var wcontext = BuildWindow(Build)) { Test(wc1, wcontext); } }
public MainWindow() { InitializeComponent(); HTMLWindow.UseINavigable = true; SetUpRoute(HTMLWindow.NavigationBuilder); var datacontext = new Couple(); var my = new Person() { Name = "O Monstro", LastName = "Desmaisons", Local = new Local() { City = "Florianopolis", Region = "SC" } }; my.Couple = datacontext; datacontext.One = my; HTMLWindow.NavigateAsync(datacontext).DoNotWait(); }