Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why Don’t Relative Media and Image Paths Work in XAML?

0
Posted

Why Don’t Relative Media and Image Paths Work in XAML?

0

If you use relative image and media paths in your XAML (as in the example above), the images will be loaded relative to the location of the Gestalt XAP, and not relative to the page (unless the page and XAP are in the same folder). There are three ways to resolve this: • Use absolute paths. • Use relative paths that are relative to the Gestalt XAP (see gestaltpath in gestalt.js). • Move the Gestalt files to the same folder as your page.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123