LearnWPF.com posted this article about converting bitmap images to XAML and using them in your applications.
The outer element of the XAML image is a Canvas
. However, the Window.Icon
property only accepts an ImageSource
object. Does anyone know how I can 'wrap' the Canvas
in an ImageSource
so I can use it as a window icon?
Alternatively, is there a better way to use a XAML image as a window icon?