Using a XAML Vector Image as a Window Icon

LearnWPF.com has published this article about converting bitmaps to XAML and using them in your applications.

The external XAML image element is Canvas. However, a property Window.Iconaccepts only an object ImageSource. Does anyone know how I can “wrap” Canvasin ImageSourceso that I can use it as a window icon?

Alternatively, is there a better way to use a XAML image as a window icon?

+3
source share
1 answer

WPF Chrome ( , ..) Win32. , "", .Ico, .png Window.Icon.

Vector (XAML), Chrome less window. , (WIndowStyle = "None" ) WPF, , XAML- .

, Chromeless

+11

All Articles