将文件扩展名与WPF应用程序关联 [英] Associate a file extension with WPF application

查看:247
本文介绍了将文件扩展名与WPF应用程序关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个不错的小作业组织者,我想向其中添加备份选项.但由于文件损坏的可能性,我不希望在普通的xml文件或其他文件中使用它.那么,如何制作该程序知道的文件扩展名并可以保存到并以.asog文件扩展名打开?

I have a nice little assignment organizer that I want to add a backup option to. But I don't want it in an ordinary xml file or someother file because of the possibility of file corruption. So how can I make a file extension that the program knows and can save to and open with a .asog file extension?

推荐答案

尝试一下:
Vista如何生成文档图标与我的应用程序相关?

Try this:
How does Vista generate the icon for documents associated to my application?

可接受的答案说明了图标文件关联.

The accepted answer explains icons and file associations.

您的应用使用WPF没关系.文件关联不在乎您的应用程序使用什么GUI框架.

It doesn't matter that your app uses WPF. The file associations don't care what GUI framework your app uses.

这篇关于将文件扩展名与WPF应用程序关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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