10. Resources: XAP vs ‘Loose’ Images, Media, etc. in Silverlight projects end up in XAP: Application is self contained Availability guaranteed once application starts Can add to Web site instead Faster startup Easier to change
11. Resources and URIs Image ad MediaElement refer to resources Absolute ‘pack:’ URI not supported URI Style Location Img.jpg In Xap (falls back to site, relative to .xap location) /Img.jpg In DLL as embedded resource (alsofalls back to site) /AssemblyName;component/Img.jpg In Xap (falls back to site, relative to .xap location) http://example.com/app/Img.jpg Specified Location
12. Download UI Define as Xaml Set SplashScreenSource <param> Optionally handle onSourceDownloadProgressChanged V1 programming model - JavaScript