PhotoStore – XBAP & Standalone
In a chalktalk yesterday, I demo-ed a modified PhotoStore application (you may have seen this demo at last year’s PDC or played with it in the Hands on Labs). In this version, you can display images bundled with the app as well as those located in your “My Pictures” directory. This works fine as standalone app because it runs in full trust. However, the sandboxed XBAP does NOT have FileIOPermission, and so fails with a SecurityException. To make both XBAP & Standalone work with the same code base, I demoed the compile switching, runtime switching, and XAML switching tips I wrote about last week. You can get code here. Or …