I\'ve subclassed Canvas so that I can override its Render function. I need to know how I can load a bitmap in WPF and render that to the canvas. I\
Canvas
Render
This should get you started:
class MyCanvas : Canvas { protected override void OnRender (DrawingContext dc) { BitmapImage img = new BitmapImage (new Uri ("c:\\demo.jpg")); dc.DrawImage (img, new Rect (0, 0, img.PixelWidth, img.PixelHeight)); } }