Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How do I bind my ComboBoxTool with an enum ?
posted

Hi all,

I've desperately tried to find a databind property, a datasource, a datamember etc... for the ComboBoxTool I've just added to my ribbon.

I must have missed something, but I really don't know what.

If anyone can help ...

thx

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    You can set the ValueList of the ComboBoxTool to a BindableValueList. Then you can bind to it. Also, to enumerate all values in an enum, you can use the static Enum.GetValues or Enum.GetNames methods.

Children