kimosavi
Active member
Hi,
I tried different way to update the UI in WPF and I happy with the following Code:
The problem with this is that it will not refresh ONE SINGLE object but the whole Window/Page.
I need to refresh ONE UIElement (like a Wrappanel or a TextBox) without affecting the render of the other objects.
Any Ideas??
I tried different way to update the UI in WPF and I happy with the following Code:
VB.NET:
Shared Sub Refresh(ByVal sElement As UIElement)
sElement.Dispatcher.Invoke(New Action(AddressOf DoEventsHandler), DispatcherPriority.Background)
End Sub
Private Shared Sub DoEventsHandler()
End Sub
USESAGE:
Refresh(Wrappanel)
The problem with this is that it will not refresh ONE SINGLE object but the whole Window/Page.
I need to refresh ONE UIElement (like a Wrappanel or a TextBox) without affecting the render of the other objects.
Any Ideas??