Sword Art
Sword Art

Reputation: 29

WPF C# Custom UI Element?

I've created a custom TextBox with an extra property - "Label". Is there a way to make this property visible under the "Common" catagory in the Properties Panel?

Upvotes: 0

Views: 205

Answers (1)

Praveen Paulose
Praveen Paulose

Reputation: 5771

Specify the category attribute above your property. The namespace for this attribute is System.ComponentModel

[Category("Common")]
public string Label { get; set; }

Upvotes: 1

Related Questions