I have heard that this refreshes the UI but why so? Dispatcher
invokes this empty action and thats it there is no call InvalidateMeasure()
which would trigger the UI to re-measure and re-arrange and re-render inside the action. Where is here the measure and arrange process to update/refresh
the UI?
private static Action EmptyDelegate = delegate() { };
public static void Refresh(UIElement uiElement)
{
uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegate);
}
Any help?
EDITED:
I want to know the details why is UI rendered. Answers like well that triggers ui update
are not helping me any further guys.