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
instance
objectObject.
propName
stringProperty name.
addToItems
Func<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 binded property will be changed automatically after SelectedItem is changed.