C# 我如何在「;能见度“;类别而不是“类别”;其他;?

C# 我如何在「;能见度“;类别而不是“类别”;其他;?,c#,wpf,visual-studio-2010,expression-blend,C#,Wpf,Visual Studio 2010,Expression Blend,我在一些自定义用户控件中定义了一些DependencyProperties。我希望VisualStudio(和Blend作为奖励)将这些属性列在“可见性”类别下,而不是列在“其他”或“杂项”类别下 如何向这些属性添加一些元数据以实现这一点 编辑:为了澄清我的问题,我想我希望显示“普通”get/set属性,而不是真正的静态依赖属性本身,因此作为一个例子,我想要分组的属性是ConnectorLabelText: public string ConnectorLabelText { get {

我在一些自定义用户控件中定义了一些DependencyProperties。我希望VisualStudio(和Blend作为奖励)将这些属性列在“可见性”类别下,而不是列在“其他”或“杂项”类别下

如何向这些属性添加一些元数据以实现这一点

编辑:为了澄清我的问题,我想我希望显示“普通”get/set属性,而不是真正的静态依赖属性本身,因此作为一个例子,我想要分组的属性是
ConnectorLabelText

public string ConnectorLabelText
{
    get { return (string)GetValue(ConnectorLabelTextProperty); }
    set { SetValue(ConnectorLabelTextProperty, value); }
}

// Using a DependencyProperty as the backing store for ConnectorLabelText.  This enables animation, styling, binding, etc...
public static readonly DependencyProperty ConnectorLabelTextProperty =
    DependencyProperty.Register("ConnectorLabelText", typeof(string), typeof(InputConnector), new UIPropertyMetadata("IN"));
见问题

添加一个示例

[Description("My Description"), Category("Visibility")]
public string ConnectorLabelText
{
    get { return (string)GetValue(ConnectorLabelTextProperty); }
    set { SetValue(ConnectorLabelTextProperty, value); }
}

哦,谢谢-在谷歌上搜索这个词是错误的:(呵呵,没问题:)这很容易发生