private void Send_but_Click(object sender, RoutedEventArgs e) { if (Msg_box.Text != "") { OnlineUsers.NewMsg(new TMsg("Server", "All", Msg_box.Text)); Chat_box.Items.Add("Server : " + Msg_box.Text); Msg_box.Clear(); } }
private void Send_but_Click(object sender, RoutedEventArgs e) { if (Msg_box.Text != "") { addMes(Login + " : " + Msg_box.Text); client.SendMessage(new TMsg(Login, "All", Msg_box.Text)); UpdateScrollBar(Chat_box); Msg_box.Clear(); } }
private void Msg_box_TextChanged(object sender, TextChangedEventArgs e) { Msg_box.ScrollToEnd(); }