This project has moved. For the latest updates, please go here.

PropertyGrid Property Attributes

Oct 10, 2012 at 8:39 PM

I 'm using XTK 1.7 (added the reference, got the t-shirt), and when I try to use an attribute (like "Category") on a property in my object, the parser pukes out an error about not being able to find Category or CategoryAttribute.  I saw in another thread that I need to use the Microsoft.Windows.Controls.Attributes namespace, but I can't find "Controls" in the namespace chain.

What am I missing?

Oct 11, 2012 at 11:40 AM

CategoryAttribute is in the following namespace and assembly:

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

See

http://msdn.microsoft.com/en-us/library/system.componentmodel.categoryattribute.aspx

Oct 12, 2012 at 4:35 PM

Yep - found that out about an hour after I posted the question. :)