public void Log(string LogMessage) { GameLog.Children.Add(new TextBlock { Text = LogMessage, }); GameLogDisplay.ScrollToBottom(); }
/// <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); }