Hi,
Hoping you might be able to assist me with a question about setting the source property of an image control in WPF application to that of a stored png file in Resources.
I have added the image as a resource in Visual Studio 2013 and by selecting the image in the Image Control Properties it shows on the form correctly. When I run the application however, the image does not show?
If I set the image control source in the properties area to c:\Image.png the image will show at runtime but I wish to have the image stored and utilised from Resources not a direct path to a file on c:\.
I have a folder in the application called Resources and added the image using the Visual Studio 2013 Add Resource facility.
I you can point me in the right direction I would greatly appreciate it / I am sure it is something simple.
Thanks for your assistance.
Michael.
Hoping you might be able to assist me with a question about setting the source property of an image control in WPF application to that of a stored png file in Resources.
I have added the image as a resource in Visual Studio 2013 and by selecting the image in the Image Control Properties it shows on the form correctly. When I run the application however, the image does not show?
If I set the image control source in the properties area to c:\Image.png the image will show at runtime but I wish to have the image stored and utilised from Resources not a direct path to a file on c:\.
I have a folder in the application called Resources and added the image using the Visual Studio 2013 Add Resource facility.
I you can point me in the right direction I would greatly appreciate it / I am sure it is something simple.
Thanks for your assistance.
Michael.