【发布时间】:2010-11-29 09:06:01
【问题描述】:
使用
可以轻松地将值传递给另一个 xaml 页面NavigationService.Navigate(new Uri("/SecondPage.xaml?msg=" + textBox1.Text, UriKind.Relative));
但这仅适用于字符串值。我想将一个对象传递给 xaml 页面。我该怎么做?
在 SO 和 WP7 论坛上发现了一个类似的问题。解决方案是使用全局变量(不是最好的解决方案)。
【问题讨论】:
标签: xaml windows-phone-7