private void ExitChat_Click(object sender, RoutedEventArgs e) { ((Grid)Parent).Children.Remove(this); ChatUser.Delete(chatID, User.CurrentUser.ID); }