2
我的问题很简单:当用户更改ListBox中的选择时,我需要我的应用程序转到全屏模式,但我需要更改显示的页面。我使用Silverlight 4当进入全屏模式时更改页面
private void MainListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
PresentationPage currentPresentationPage = new PresentationPage();
App.Current.RootVisual = currentPresentationPage;
App.Current.Host.Content.IsFullScreen = true;
}
在执行上面的代码,应用程序进入到全屏,但是页面并没有改变,它只是调整大小。有人可以告诉我该代码有什么问题吗?谢谢
是的,这是有效的,非常感谢。 – 2010-08-06 08:47:14