Leveraging Resource Packages

Windows 8.1 and later support resource packages, which separate your assets such that devices no longer have to download every variation of every resource in your app if they won’t be used. For example, if your app provides resources for multiple languages, Windows only needs to download ones corresponding to the language(s) in use on the device.

Leveraging this support is as simple as telling the packaging wizard to generate an app bundle when you select Store, Create App Packages... in Visual Studio. As shown in Figure 11.5, you can select Always or If Needed. The latter generates an app bundle only if you’ve defined scale-specific or language-specific resources.

FIGURE 11.5 When you generate an app bundle, any ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.