Is it possible to display a .ico file in a XAML C# app? It's for a WinRT Windows Phone 8.1 app using Visual Studio 2015.
<Image Source="http://www.stackoverflow.com/favicon.ico"/>
shows the icon fine in the designer, but not when run in the emulator.
I've tried using a downloaded icon, downloading an icon programmatically, saving as a .png file, loading from the LocalFolder, using the Assets folder, etc...but the image is still not shown. Seems like there should be an easy solution for this, or that it's just not possible.
Can it be done?
Icon="myIcon.ico"
attribute on the Window's xaml. Not sure about WinRT. If you want to show it within the app itself, maybe try converting it to PNG or JPG and use anImage
control. – GuendolenCopy Always
andContent
? – Derivation