Registering a File Association

Registration of a file association is done in your app’s WMAppManifest.xml file. To edit the WMAppManifest.xml file, in the Visual Studio Solution Explorer, right-click the WMAppManifest.xml file, and then select View Code.

A file association is specified with the FileTypeAssociation element. Listing 30.1 shows an excerpt from the WMAppManifest.xml file in the WPUnleashed.FileAndProtocolAssociations project.

The following elements are used to register a file association:

Image Extensions Element—Contains FileTypeAssociation elements and other extension items such as Protocol extension elements, discussed later in this ...

Get Windows® Phone 8 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.