protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (this.NavigationContext.QueryString.ContainsKey("reid")) { string title = this.NavigationContext.QueryString["title"]; if (title.Length > 3 && title.Substring(0, 3) == "Re:") { TitleText.Text = title; } else { TitleText.Text = "Re: " + title; } TypeTitle.Text = "回复"; Board.Text = board = this.NavigationContext.QueryString["board"]; reid = int.Parse(this.NavigationContext.QueryString["reid"]); ContentText.Focus(); } else { TypeTitle.Text = "发帖"; Board.Text = board = this.NavigationContext.QueryString["board"]; TitleText.Focus(); } }