我是silverlight的新手。請幫我找到設置頁面標題。 頁面標題在Silverlight 4中
請參閱我不想/瀏覽器標題中的/Pages/Page1.xaml。
private void hlHome_Click(object sender, RoutedEventArgs e)
{
//HtmlDocument document = HtmlPage.Document;
//document.SetProperty("title", "Sample Title");
this.frameContainer.Navigate(new Uri("/Pages/Home.xaml", UriKind.Relative));
}
private void frameContainer_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
{
e.Handled = true;
frameContainer.Navigate(new Uri("/Pages/ErrorPage.xaml", UriKind.Relative));
}
在地址欄中完整URL的外觀如何? – AnthonyWJones
@AnthonyWjones:http:// localhost:4816/SilverlightApplication1TestPage.aspx#/ Pages/Page1.xaml –