Click here to Skip to main content
15,890,438 members
Articles / Desktop Programming / WPF

Load external images in WPF via XAML ?

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
19 Apr 2010CPOL 30K   8  
Sometimes we need to show an external image directly in WPF.Assume we have a folder that is named images beside of our main's WPF exe file. There is an image in this folder that's named sample.png.Now with the following XAML code, we can show it in WPF directly:<Image...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions