Binding Image doesn’t work, but setting Source from codebehind does…

Link to my VS2010 WPF test project (40kb) http://ift.tt/1M9U8xp

I want to have 2 Images, coordinate system is the background image, and some variable points drawn in an overlay, the second image.

Most of the code is the generation of random points, the queue and image altering on byte level for performance reasons.

I need to realise this via Data Bindings (mvvm constraints), but I only seem to get it to work when I set the Image source from the code behind.

WPF inspector tells me that the ImageSource has a pixel size of 0px * 0px, whereas the VS debugger shows me the actual size.

Any idea what the issue could be ?

by Yamchu via /r/csharp

Leave a Reply