public void Track(NavigationState navigationState) { if (navigationState.Url == currentUrl) return; currentUrl = navigationState.Url; if (server.CurrentDatabase != Server.DefaultDatabaseName) navigationState.Url = "databases/" + server.CurrentDatabase + "/" + navigationState.Url; // Application.Current.IsRunningOutOfBrowser Application.Current.Host.NavigationState = navigationState.Url; HtmlPage.Document.SetProperty("title", navigationState.Title); }
public void Track(NavigationState navigationState) { if (navigationState.Url == currentUrl) { return; } currentUrl = navigationState.Url; if (server.CurrentDatabase != Server.DefaultDatabaseName) { navigationState.Url = "databases/" + server.CurrentDatabase + "/" + navigationState.Url; } // Application.Current.IsRunningOutOfBrowser Application.Current.Host.NavigationState = navigationState.Url; HtmlPage.Document.SetProperty("title", navigationState.Title); }