예제 #1
0
		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);
		}
예제 #2
0
        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);
        }