How are contols selected for PropertyGrid

Jul 1, 2014 at 12:37 PM
I am using the PropertyGrid with the Helix Toolkit. Included are two different properties that are Enums. One property Enum is displayed in the propertyGrid as a DropDown Combo Box while the other property Enum is displayed in the PropertyGrid as an array of RadioButtons.

Both properties are marked with just one attribute<Browsable>.

What determines the choice of UI controls In PropertyGrid for an Enum? Is there a attribute key word for DropDownCombo or RadioButton?

Thank you,
Bob
Coordinator
Jul 1, 2014 at 1:03 PM
See the SelectorStyleAttribute attribute and PropertyGrid.EnumAsRadioButtonsLimit property.
The default selector style is Auto, then the number of enum values will determine if it is shown as combo box or radio buttons.
Jul 1, 2014 at 2:14 PM

Hello objo,

Found both the attribute and propertyGrid property.

Bob