How to enumerate images included as “Content” in the XAP?

后端 未结 3 1824
盖世英雄少女心
盖世英雄少女心 2020-12-11 19:59

I\'m including a number of images as \"Content\" in my deployed XAP for Mango.

I\'d like to enumerate these at runtime - is there any way to do this?

I\'ve t

3条回答
  •  有刺的猬
    2020-12-11 20:52

    This is no API baked in to WP7 that allows you to enumerate the contents of the Xap. You need to know the name of the content items before you can retreive them.

    There probably is some code floating around somewhere that is able to sniff out the Zip catalog in the XAP however I would strongly recommend that you don't bother. Instead include some sensible resource such as an Xml file or ResourceDictionary that lists them.

提交回复
热议问题