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 Source="pack://siteoforigin:,,,/images/sample.png" />