//用于绑定enter建 private void SendBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { client.Talk(us.Name, this.SendBox.Text); this.SendBox.Text = ""; } }
//用于绑定enter建 private void SendBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { client.Talk(us.Name, this.SendBox.Text); this.SendBox.Text = ""; } }