private void SendMessageElem(UIElement element) { string message = TextBox.CurrentText; SendMessage(message); TextBox.Clear(); }