Declares an app extensibility point of type windows.fileTypeAssociation. A file type association indicates that the app is registered to handle files of the specified types.
<uap:FileTypeAssociation
Name = 'A string with a value between 1 and 100 characters in length.'
DesiredView = 'An optional string that can have one of the following values: "default", "useLess", "useHalf", "useMore", or "useMinimum".'
desktop2:UseUrl = 'An optional boolean value.'
desktop2:AllowSilentDefaultTakeOver = 'An optional boolean value.'
desktop5:ThumbnailTypeOverlay = 'A string with a value between 1 and 256 characters in length that ends with ".jpg", ".png", or ".jpeg" that cannot contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters cannot be the first or last characters. Also, the string can contain / or \ but not both.' >
<!-- Child elements -->
uap:DisplayName?
& uap:Logo?
& uap:InfoTip?
& uap:EditFlags?
& uap:SupportedFileTypes?
& uap2:SupportedVerbs?
& uap4:KindMap?
& rescap3:MigrationProgIds?
& desktop2:ThumbnailHandler?
& desktop2:OleClass?
& desktop2:DesktopPreviewHandler?
& desktop2:DesktopPropertyHandler?
& desktop3:PropertyLists?
& desktop7:Logo?
& desktop7:ProgId?
& desktop10:IconHandler?
</uap:FileTypeAssociation>
Key
? optional (zero or one)
& interleave connector (may occur in any order)
Attributes and elements
Attributes
Attribute
Description
Data type
Required
Default value
Name
The name of the file type association. You can use this name to organize and group file types. The name must be all lower case characters with no spaces.
A string with a value between 1 and 100 characters in length.
Yes
DesiredView
The desired amount of screen space to use when the app launches. This view mode preference is a requested value only. The preferred size that you specify is not guaranteed to be honored by Windows, so you should not write code that relies on never getting into a size that is smaller than the preferred minimum size or larger than the preferred maximum size.
An optional string that can have one of the following values: default, useLess, useHalf, useMore, or useMinimum.
No
desktop2:UseUrl
If set to true, specifies that the application can accept a URL, instead of a file name, on the command line. Applications that can open documents directly from the internet, like web browsers and media players, should use this value. When ShellExecuteEx starts an application and this value is set to false, the default behavior, ShellExecuteEx downloads the document to a local file and invokes the handler on the local copy.
An optional boolean value.
No
desktop2:AllowSilentDefaultTakeOver
If set to true, the app will appear in an "Open With" list, but it won't be the default app for the file type.
An optional boolean value.
No
desktop5:ThumbnailTypeOverlay
An image resource for a thumbnail overlay.
A string with a value between 1 and 256 characters in length that ends with .jpg, .png, or .jpeg that cannot contain these characters: <, >, :, ", |, ?, or *. In this string, the / and \ characters cannot be the first or last characters. Also, the string can contain / or \ but not both.
Contains programmatic identifier (ProgID) values that describe the application, component, and version of each desktop application from which you want to inherit file associations.