在silverlight 4中从一个xaml页面导航到另一个xaml页面 [英] Navigating from one xaml page to another xaml page in silverlight 4

查看:85
本文介绍了在silverlight 4中从一个xaml页面导航到另一个xaml页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 NavigationService n = NavigationService.GetNavigationService(sender  as  Button); 

n.Navigate(新的Uri( SelectionPage.xaml,UriKind .Relative));





但我收到以下错误:

 System.Windows.Navigation.NavigationService ' 不包含定义 
' GetNavigationService' >



请帮助我..

解决方案

试试这个:



  .NavigationService.Navigate( new  Uri(  SelectionPage.xaml,UriKind.Relative)); 


NavigationService n = NavigationService.GetNavigationService(sender as Button);

n.Navigate(new Uri("SelectionPage.xaml", UriKind.Relative));



But I'm getting the following error:

System.Windows.Navigation.NavigationService' does not contain a definition
for 'GetNavigationService'



Pls help me..

解决方案

Try this:

this.NavigationService.Navigate(new Uri("SelectionPage.xaml", UriKind.Relative));


这篇关于在silverlight 4中从一个xaml页面导航到另一个xaml页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆