在Visual Studio Express中创建一个WPF库 [英] Create a WPF library in Visual Studio Express

查看:389
本文介绍了在Visual Studio Express中创建一个WPF库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过将常见的实用程序类和用户控件放置到打包库中,使我的代码更可重用。 IDE使这个困难,到目前为止,我发现它总是默认为Windows窗体用户控件,并禁用我的能力创建xaml文件等从添加新项目对话框。

I am trying to make my code more reusable by placing commonly recurring utility classes and user controls into a packaged library. The IDE is making this difficult, as so far, I have found that it always defaults to Windows Forms user controls and disabling my ability to create xaml files etc from the 'Add a New Item' dialog.

可以在IDE环境(我使用VS2008 Express)的帮助下创建类和控件的库吗?

Is it possible to create a library for classes and controls with the aid of the IDE environment (I'm using VS2008 Express)?

如果因此,在处理WPF的库时,我需要更改以获得IDE之外的首选行为?它只是一个选择正确的引用组合的情况,或者我需要编辑项目文件?我对这个有点失落。

If so, what do I need to change to get the preferred behaviour out of the IDE when working on libraries for WPF? Is it just a case of selecting the right combination of references, or do I need to edit the project file? I'm at a bit of a loss on this one.

推荐答案

有关如何为此创建模板的分步说明。

Here are detailed step-by-step instructions on how to create a template for that.

这篇关于在Visual Studio Express中创建一个WPF库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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