W
W
wolfak2014-02-10 18:36:48
Programming
wolfak, 2014-02-10 18:36:48

Why is the image not showing when debugging XAML?

Good time of the day. I'm making a style for an application in the latest version of visual studio. In the designer window, the image is displayed normally, but when compiled, it is not displayed, in its place is empty space.
Build action: Embedded resource
Copy to output directory: copy if new

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Doshevsky, 2014-02-10
@wolfak

Image path must start with "ms-appx:///" prefix
<Image Source="ms-appx:///Images/logo.png"/>

A
Aleksandr, 2014-02-12
@SunZ

Try to specify the path to the image as "pack://application:,,,/Images/logo.png"
for more details msdn.microsoft.com/ru-ru/library/aa970069 (v=vs.110).aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question