Version

CategorySortOrderAttribute Class

Specifies the sort order of the PropertyGridCategoryItems assigned to the properties of the class or structure decorated with the attribute.
Syntax
'Declaration
 
Public Class CategorySortOrderAttribute 
   Inherits System.Attribute
public class CategorySortOrderAttribute : System.Attribute 
Remarks
Multiple instances of this 'CategorySortOrderAttribute' may be applied to the same class/structure - one for each unique category assigned to the class/structure properties. Note that is is possible to create your own custom attribute for specifying the sort order of categories - to ensure that the XamPropertyGrid can recognize your custom attributes they must adhere to the following 2 rules: 1. The attribute class name must be 'CategorySortOrderAttribute' (or 'CategorySortOrder') 2. The attributes constructor must accept 2 parameters: a. a category name parameter of type string b. a sort order parameter of type int
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also