Why Don’t Relative Media and Image Paths Work in XAML?
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
- The Save Image and Save Thumbnails functions of Media Player Classic both give the same error and don’t work. How can I make those functions work?
- Is negative media attention and criticism from the Office of the President painting a negative image of Council?
- Why Don’t Relative Media and Image Paths Work in XAML?