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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use relative paths:
(1). Relative to the project:
(2). Relative to the XAML file path where this element is defined:
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.