共用方式為


FileTypeAssociation Logo sizes for Windows Phone 8.1 modern apps

 

  The MSDN documentation on “How to handle file activation”, for Windows and Windows Phone 8.1 applications says that Logo images should be of sizes 16, 32, 48, and 256 pixels square.  The MSDN documentation on “Auto-launching apps using file and URI associations for Windows Phone 8” says that Logo images should be of sizes 33, 69, and 176 pixels square.

  However, none of these sized images work correctly when used in a Windows Phone 8.1 (XAML) application. Instead you need to use image sizes: 36, 129, and 336 pixels square. Since this is phone specific you should add these to the Windows Phone specific assets of your Universal project. The filename must be in the form: <name>.targetsize-<size>.png, for example:

 

image

 

You need to reference this set of files in your Windows Phone 8.1 projects’ “Package.appxmanifest” file using just the first and last parts of the file name, without the “targetsize-*”, for example: “Logo.png”. 

 

image

  FYI: “Display name” and “Content type” fields are not required but nice to have.

  Now, after you deploy the app to your phone any files with registered extension (“.alsdkcs” in this case) should show on of your Logo images in applications which support display of the file type logo like the Office Hub.

  NOTE: if multiple applications are registered for the same file extension then you will see a search icon: image instead of either applications’ logo.

 

Don’t forget to follow the Windows Store Developer Solutions team on Twitter @wsdevsol. Comments are welcome, both below and on twitter.

Comments

  • Anonymous
    March 06, 2015
    The MSDN documentation says the smallest size is 63 pixels, not 36 pixels for Windows Phone 8.1. Have you got the digits of the smallest size the right way round?