How to access textBlock from another xaml window?
I have the Main Page and there is the event handler xmppClient_OnMessage. I want to do something like this:
void xmppClient_OnMessage(object sender, MessageEventArgs e)
{
this.NavigationService.Navigate(new Uri("/message.xaml", UriKind.Relative));
message.textBlock1.Text += e.Message.From + ": " + e.Message.Body;
}
you can pass the data using query parameters just like in html.
and retrive it like this on next page