Boa noite,
Estou passando um texto qualquer de uma página para a outra através do método:
private void Button_Click(object sender, RoutedEventArgs e)
{
string newUrl = "/Page1.xaml?text=" + textoInput.Text;
NavigationService.Navigate(new Uri(newUrl, UriKind.Relative));
}
E esto jogando esse texto dentro de um textblock através do código:
string textBoxValue = "";
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
//Retrieve the value passed during page navigation
NavigationContext.QueryString.TryGetValue("text", out textBoxValue);
textBlockTexto.Text = textBoxValue;
}
Queria saber como eu faço o meu texto: textBlockTexto.Text ficar piscando.
Obrigado,