아래와 같이 내 압핀에 대한 OnClick 이벤트가 있습니다.변수를 다른 Silverlight 페이지로 전달하는 방법은 무엇입니까?
void BusStop1061_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
MessageBox.Show("Buses from this station: City Link");
}
내가 다른 페이지로와 "PassedVariable"를 INT로 bustop 번호를 전달하고자하는
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
{
string site = "http://www.sourceDomain?stop=" + PassedVariable;
webBrowser1.Navigate(new Uri(site, UriKind.Absolute));
}
그때, 페이지 하나에 일정한 INT를 만드는 페이지로 전달의 생각 2 urimapping 사용하지만 작동하지 않는 것 같아요 누군가가 더 나은 옵션을 가지고있을 것이라고 생각했습니다
나는 비슷한 게시물을 보았지만 꽤 질문에 대답하지 않습니다.
가능한 중복을 사용하고자 할 때 (HTTP [또 다른 형태의 C#을에서 변수를 문의] : //stackoverflow.com/questions/5928071/call-variable-from-another-form-c) –
http://stackoverflow.com/questions/5865588/how-to-pass-value-from-textbox-to -label-on-different-form 및 http://stackoverflow.com/questions/4247807/passing-variable-between-winforms –
및 http : // stackoverflow.com/questions/7316965/다중보기 모델 간 데이터 공유/7338294 # 7338294 –