Metro风格应用中的文件类型关联 [英] File Type Association in Metro Style App

查看:82
本文介绍了Metro风格应用中的文件类型关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法加密文件并将其扩展名设置为(.encrypted)。



现在,我正在尝试在我的应用程序中添加文件类型关联每当用户打开一个带有扩展名的文件(.encrypted)时,它将使用我的metro应用程序打开,以便我可以处理该文件(即解密该文件并将其原始扩展名设置回来)。



我在属性部分设置了显示名称,信息提示和名称属性。



我在文件类型中添加了(.encrypted)字段,但左边的内容类型字段为空,因为我不知道该写什么。



我完全混淆我应该输入什么 应用程序设置部分,其中包含三个字段(可执行文件,入口点和起始页)。



我编写解密代码的页面被命名为默认(即MainPage.xaml)。



现在请帮助我在应用程序设置部分输入什么,我是否需要提供内容输入field ???



任何帮助都将不胜感激...

解决方案

我写的在我的31天Windows 8系列中,有一篇非常身临其境的文章。



http:/ /31daysofwindows8.com



这里是文章:



http://www.jeffblankenburg.com / 2012/11/18/31-天的 - 窗口8天18-文件关联的应用内-合同

I have managed to encrypt a file and set its extension to (.encrypted).

Now, I am trying to add file type association in my App so that whenever the user opens a file with extention (.encrypted), it will be opened with my metro app so that i can process on that file (i.e. decrypt that file and set its original extention back).

I have set Display Name, Info Tip and Name property in Properties section.

I have added (.encrypted) in File Type field, BUT LEFT THE "Content Type" field empty, as i don''t know what to write there.

I am totally confused what should i input in "App Settings" section, which has three fields (Executable, Entry Point and Start Page).

The page on which i have written decryption code is named as default (i.e. MainPage.xaml).

Now please help me out what should i input in App Settings section AND do i need to provide "Content Type" field ???

Any help will be greatly appreciated...

解决方案

I wrote a pretty immersive article on this in my "31 Days of Windows 8" series.

http://31daysofwindows8.com

Here''s the article:

http://www.jeffblankenburg.com/2012/11/18/31-days-of-windows-8-day-18-file-associations-app-contracts


这篇关于Metro风格应用中的文件类型关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆