WPF:如何在VS2008中显示枚举属性值XAML编辑器intellisense? [英] WPF: how to display enum property values in VS2008 XAML editor intellisense?

查看:400
本文介绍了WPF:如何在VS2008中显示枚举属性值XAML编辑器intellisense?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个具有枚举类型的依赖属性的WPF自定义控件。

I created a WPF custom control with a dependency property of an enum type.

在VS中编辑XAML时,我想要该控件的用户查看可选项知识窗口中的枚举值。

I want the user of that control when editing the XAML in VS to see the optional values of the enum in the intellisense window.

有谁知道如何完成?

推荐答案

如果您在包含该控件的程序集中添加XmlnsDefinition属性,我相信它将会起作用。顺便说一句,我试图在同一个项目中引用控件时遇到了这个问题。

I believe it will work if you add an "XmlnsDefinition" attribute to the assembly containing the control. By the way, I ran into problems with this when trying to reference the control in the same project.

这篇关于WPF:如何在VS2008中显示枚举属性值XAML编辑器intellisense?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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