0

メールの文字列に OnNavigatedTo メソッドの aux の値しか含まれていないのはなぜですか? Main メソッドで文字列 email を使用しようとすると、値が 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;
        }
4

0 に答える 0