private void OnChatSend(object sender, RoutedEventArgs e)
 {
     if (ignoreEvents)
     {
         return;
     }
     if (DataExchange.CreateChatMessage(chatTextBox.Text, (bool)globalChatMode.IsChecked ? 0 : GetCanvasId()))
     {
         chatTextBox.Text = "";
     }
 }