Sasha Pleshakov2015-12-21 22:49:47
Sasha Pleshakov, 2015-12-21 22:49:47

After adding an image to the XAML code, it appears in the designer, but after compilation it is not in the window. What's the matter?

<Image Source="pack://siteoforigin:,,,/Resources/pic.png"/>

Image added to assets and code generated after selecting image in property menu

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Sumor, 2015-12-22

Use just the filename
or use application permissions

<Image Source="pack://application:,,,/component/pic.png"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question