Method BindEnumProp
BindEnumProp(object, string, Func<object, bool>?)
Binds property specified with instance and
propName to the ComboBox.
After binding ComboBox will edit the specified property.
public virtual void BindEnumProp(object instance, string propName, Func<object, bool>? addToItems = null)
Parameters
instanceobjectObject.
propNamestringProperty name.
addToItemsFunc<object, bool>Optional function which returns whether to add specified enum value to the items.
Remarks
Property must have the Enum type. Value of the bound property will be changed automatically after SelectedItem is changed.