Enumeration Properties in Domain Components

The example below illustrates how to implement Enumeration Properties in a Domain Component interface.

using DevExpress.Persistent.Base;
// ...
TextOnlyEnum TextOnlyEnumProperty { get; set; }
TextAndImageEnum TextAndImageEnumProperty { get; set; }
// ...
public enum TextOnlyEnum { Minor, Moderate, Severe }
public enum TextAndImageEnum {
    [ImageName("State_Priority_Low")]
    Low,
    [ImageName("State_Priority_Normal")]
    Normal,
    [ImageName("State_Priority_High")]
    High 
}

See Also