Saturday, 15 January 2011

windows phone 7 - how to read resources from app.xml -



windows phone 7 - how to read resources from app.xml -

i defined resources in app.xml

<application.resources> <maps:mapglobalsettings x:key="mapglobalsettings" apikey="1234567890" /> </application.resources>

how can read code?

you can read global resources like

app.current.resources["mapglobalsettings"]

it returns object, have cast original type

windows-phone-7

No comments:

Post a Comment