In the namespace X, I've got a public enum definition :
namespace X { public enum MyEnum { val0=0, val1, val2, val3, val4 } } In the namespace Y I've got a class which has a property of the X.MyEnum type
using namespace X; namespace Y { class Container { public MyEnum MYEnum { get { return m_myenum; } set { m_myenum = value; } } private MyEnum m_myenum; } } I've created an user control which contains a ComboBox. I'd very much like to databind it (TwoWay) to the MYEnum field of the "Container". The usercontrol resides in the window.
How do I achieve that? I've seen some examples with ObjectDataProvider, however I'm lost.