Convert the bitmap image to BitmapImage and assign it to a property (i.e. in the CurrentImage example), the image control property is bound to:
MemoryStream ms = new MemoryStream(); _bitmap.Save(ms, ImageFormat.Png); ms.Position = 0; BitmapImage bi = new BitmapImage(); bi.BeginInit(); bi.StreamSource = ms; bi.EndInit(); CurrentImage = bi;
source share