【发布时间】:2013-12-19 17:56:57
【问题描述】:
我正在尝试将一个数组从 page1.xaml 传递到 page2.xaml。
int[] array = new int[] { 2,4,6,8,10,12,14,15,17,19,21,23,25,27,28,30,32,34,36,38,40,42,43,45,47,49,51,53,55,56,58,60,62,64,66,68,70,71,73,75,77,79,81,83,84,86,88,90,92,94,96,98,99
};
NavigationService.Navigate(new Uri("/Page2.xaml?Parameter" + array, UriKind.Relative));
如何在 page2 中获取此数组值?
【问题讨论】:
-
使用你的方法,只能查询字符串参数。这就是您要查找的内容:stackoverflow.com/a/14009001/1950812
标签: c# windows-phone-7 windows-phone-8