Skip to content
Laurence Gillian edited this page Jul 30, 2017 · 3 revisions

An enum can be configured by first selecting the assembly (or App_Code folder) to reflect, and then the specific enum:

By default each enum item name and it's value are used for a label and key respectively, although this behaviour can be overridden with optional attributes:

using nuPickers.Shared.EnumDataSource;

public enum ExampleColours
{
  [EnumDataSource(Key="#FF0000")]
  Red,

  [EnumDataSource(Enabled=false)]
  Green,

  [EnumDataSource(Key="#7FFFD4", Label="Aqua Marine")]
  AquaMarine  
}

Property Editors

Clone this wiki locally