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.