如何在WPF中为Visual Studio属性窗口创建自己的类别?

时间:2011-08-04 09:06:10

标签: wpf designer

我一直在为自定义控件添加设计器扩展性。我可以使用“Microsoft.Windows.Design.PropertyEditing.CategoryEditor”创建类别编辑器。但目标类别很奇怪。我只能将自定义编辑器添加到现有类别,如Common,Text,Layout,transform等。

如何创建自己的“我的自定义控件3D属性”

此致

Jawahar

1 个答案:

答案 0 :(得分:1)

我已经能够通过在属性上方的代码中放置标记来实现它,例如(C ++ / CLI):

[Category("Nooo")]
[Description("They'll laugh at you")]
property int Mom;
相关问题