Combo Box control with 3 options
Combo Box control with 3 options

Combo box control will be automatically generated for all the properties of enumerator types. All values of enumerators will be considered as the items in the combo box:

public enum Options_e
{
    Option1,
    Option2,
    Option3
}

public class DataModel
{
    [ComboBoxOptions(swPropMgrPageComboBoxStyle_e.swPropMgrPageComboBoxStyle_Sorted)]
    public Options_e Options { get; set; }
}

Additional options and style for combo box control can be specified via ComboBoxOptionsAttribute

Item Text

ComboBoxItemTextAttribute attribute can be used to specify user friendly title for the items to be shown in the combo box

public enum Options_e
{
    [ComboBoxItemText("First Option")] //static title
    Option1,

    [ComboBoxItemText(typeof(Resources), nameof(Resources.Option2Title))] //title loaded from resources
    Option2
}