So I'm new to WPF and I'm disliking XAML, so I've been programming entirely in code. I'm prefacing this in case that's the crux of my issue.
So I've got software that has a marquee ticker (horizontal right to left) and a spot where images, movies or browser content can be displayed. That spot changes every 10 seconds to display whatever it's being told to by a local PHP server.
As each image is unloaded and loaded, the marquee ticker pauses for a moment. All I'm doing is :
Image picture = new Image(); picture.Source = new BitmapImage(new Uri(contentPath, UriKind.Relative));
Then there is a timer that removes that queries the next content, loads it, removes the old content and places the new content. This is fast on everything EXCEPT images. I want to load them async but it seems that I just can't get it working.
I've googled the problem and come up with delegates, background threads and data bindings and nothing seems to remove this little skip. Is there a good way to load images without affecting the UI thread?
by FallenWyvern via /r/csharp