I created a bitmap like this: bitmap.WritePixels(new Int32Rect(0, 0, bmp_width, bmp_heigth), pixels, (int)stride, 0); and it shows nice. I use all values for pixels 128 and can see my bitmap as it have to be grey. MyImage.Source = bitmap;
Then I added one button to make the same but with another values "0". But for some reason when I press the button the image is still grey. It seems that MyImage.Source = bitmap; wasn't updated.
What do I missing here? How can I update the source of the image at the run time?