public static void Log(LogEntry entry) { var window = Window.Value; window.Dispatcher.Invoke(()=> window.LogEntries.Add(entry)); }