How do you send a refresh message to a WPF grid or canvas?
In other words, I have noticed while in debug mode, I can write code that sends a line to the display and
I'm used to winforms so this is only a guess, but look for an Invalidate()
method.
Refresh update WPF Controls like Winforms
public static class ExtensionMethods
{
private static Action EmptyDelegate = delegate() { };
public static void Refresh(this UIElement uiElement)
{
uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegate);
}
}