Loading an external image to WPF App ?
-
Hi, I have an image
lock.png
beside of my WPF exe in theimages
folder. Now, I'm gonna load it into the WPF Project as the App's icon, I've use the following XAML code, but it doesn't work :Icon="images\lock.png"
How should I load an external image into a WPF application? Thanks
-
Hi, I have an image
lock.png
beside of my WPF exe in theimages
folder. Now, I'm gonna load it into the WPF Project as the App's icon, I've use the following XAML code, but it doesn't work :Icon="images\lock.png"
How should I load an external image into a WPF application? Thanks
Window.Icon Property http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx[^] Imaging Overview http://msdn.microsoft.com/en-us/library/ms748873.aspx[^] Just read this articles, i hope this information will be helpful.