Answers for "reload usercontol wpf"

C#
0

reload usercontol wpf

public static class ExtensionMethods
{
    private static readonly Action EmptyDelegate = delegate { };
    public static void Refresh(this UIElement uiElement)
    {
        uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegate);
    }
}

//call on any UI Element like so:
//element.Refresh();
Posted by: Guest on October-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language