2017-09-15 09:49:32 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Windows.Threading;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ChatController.ChatKlassen
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class ChatControlExtensions
|
|
|
|
|
|
{
|
2022-08-01 13:25:20 +02:00
|
|
|
|
private static readonly Action EmptyDelegatee = delegate { };
|
2017-09-15 09:49:32 +02:00
|
|
|
|
|
|
|
|
|
|
public static void RefreshChatUI(this UIElement uiElement)
|
|
|
|
|
|
{
|
|
|
|
|
|
uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegatee);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|