Why my string email only contains the value of aux on the OnNavigatedTo method? Why when I try to use my string email on the Main method the value becomes null?
public string email;
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
string aux;
base.OnNavigatedTo(e);
if (NavigationContext.QueryString.TryGetValue("email", out aux))
email = aux;
}