Normally a WPF Image source is something like
WpfApplication1;component/Untitled.png
But what if I have to rename the assembly? I have to change all Image sources?
You can use relative paths:
(1). Relative to the project:
<Image Source="/Untitled.png".../>
(2). Relative to the XAML file path where this element is defined:
<Image Source="Untitled.png".../>
But, if the image is located in an external assembly then you have to specify the assembly name, otherwise there is no way WPF can find it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With