public void Log(string LogMessage)
 {
     GameLog.Children.Add(new TextBlock {
         Text = LogMessage,
     });
     GameLogDisplay.ScrollToBottom();
 }
Example #2
0
 /// <summary>
 /// Make sure child controls get invalidated
 /// </summary>
 /// <param name="e"></param>
 protected override void OnInvalidated(InvalidateEventArgs e)
 {
     base.OnInvalidated(e);
     GameLogDisplay.Invalidate(e.InvalidRect);
 }