Hello
I encounter a problem about updating my custom user control in real-time.
I simply place an Image control on a custom user control, and update the ImageSource in real-time by a System.Threading.Timer instance.
The custom control seems to be rendered only at the very beginning, then the updating is suppressed.
I have tried to call InvalidateVisual and UpdateLayout method to manually update the UI, but it doesn't work. Trying to resize the window or moving the window to another monitor will cause the updating of the user control, but only once at the moment.
This will not happen if I move all of the controls as well as the timer from an user control to a window, which means if I directly do the same thing on a window, it will perfectly work.
Is there any workaround to solve this problem?