Convert BitmapImage to System.Windows.Media.Brush
Create an ImageBrush
and use that as the background:
ImageBrush ib = new ImageBrush();
ib.ImageSource = bitmap;
canvas.Background = ib;
Create an ImageBrush
and use that as the background:
ImageBrush ib = new ImageBrush();
ib.ImageSource = bitmap;
canvas.Background = ib;