diff --git a/UserInterface/Menu.xaml.cs b/UserInterface/Menu.xaml.cs
index 0776b86..71b7a46 100644
--- a/UserInterface/Menu.xaml.cs
+++ b/UserInterface/Menu.xaml.cs
@@ -528,10 +528,6 @@ namespace SystemTrayMenu.UserInterface
timerUpdateIcons.Start();
}
-#if TODO // Hack for a pseudo Refresh
- private delegate void NoArgDelegate();
-#endif
-
///
/// Update the position and size of the menu.
///
@@ -548,11 +544,7 @@ namespace SystemTrayMenu.UserInterface
// Update the height and width
AdjustDataGridViewHeight(menuPredecessor, bounds.Height);
AdjustDataGridViewWidth();
-#if TODO // Hack for a pseudo Refresh
- this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.ApplicationIdle,
- (NoArgDelegate)delegate { });
-#endif
bool useCustomLocation = Properties.Settings.Default.UseCustomLocation || lastLocation.X > 0;
bool changeDirectionWhenOutOfBounds = true;
@@ -985,31 +977,9 @@ namespace SystemTrayMenu.UserInterface
}
}
-#if TODO // Lazy value setting because of DataBinging but too late for Menues.AdjustSizeAndLocation()
- renderedMaxWidth = Math.Min(
- renderedMaxWidth,
- (double)(Scaling.Factor * Scaling.FactorByDpi * 400f * (Properties.Settings.Default.WidthMaxInPercent / 100f)));
-
- for (int i = 0; i < dgv.Items.Count; i++)
- {
- ListViewItem? lvi = dgv.FindVisualChildOfType(i);
- if (lvi != null)
- {
- Label? columnTextLabel = lvi.FindVisualChildOfType