【发布时间】:2016-05-11 08:47:44
【问题描述】:
您好,我是 Silverlight 的新手,我想将值从一个 Xaml 页面传递到 Silverlight 中的另一个 Xaml 页面。我得到了一些解决方案,因为
protected void btn_click(object sender, RoutedEventArgs e)
{
NavigationService.Navigate(new Uri("/Page1.xaml?key1"=txtname.Text, UriKind.Relative));
}
但我发现其中有一个错误
非静态字段、方法、属性 System.Windows.Navigation.NavigationService.Navigate(System.Uri)' 需要对象引用
【问题讨论】:
-
试试这个链接它对你有帮助stackoverflow.com/questions/12444816/…
-
我收到一个错误:非静态字段、方法、属性 'System.Windows.Navigation.NavigationService.Navigate(System.Uri)' 需要对象引用,所以解决方案您的链接中未提及