日期:2014-05-17  浏览次数:20958 次

windowsphone
 private  void ApplicationBarIconButton_Click_2(object sender, EventArgs e)
        {
                       
            NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));
            //这里出现非静态调用错误 
        }
 整个代码是写在App.xaml.cs下的 如何解决
windowsphone

------解决方案--------------------
         (App.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/Page1.xaml", UriKind.Relative));