【发布时间】:2011-09-15 05:05:16
【问题描述】:
我的图钉有一个 OnClick 事件,如下所示。
void BusStop1061_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
MessageBox.Show("Buses from this station: City Link");
}
我想将 bustop 编号传递到另一个页面和 int "PassedVariable"
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{
string site = "http://www.sourceDomain?stop=" + PassedVariable;
webBrowser1.Navigate(new Uri(site, UriKind.Absolute));
}
我正在考虑在第一页上创建一个常量 int,然后使用 urimapping 将其传递到第二页,但它似乎不起作用,我认为有人可能有更好的选择
我看过类似的帖子,但他们并没有完全回答我的问题。
【问题讨论】:
标签: c# silverlight windows-phone-7