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
495
Binding XamComboEditor to a generic class
posted

Hello,

I have the following problem:

I specify the ItemsSource of a XamComboEditor as a list of instances of some generic class,

and bind the control to a property which type is the above-mentioned generic class type.

Now, I want to assign the ValueType property with that type. I do it this way:

ValueType = "{x:Type myNamespace:MyClass}".

The problem is the binding doesn't recognize MyClass as generic, and so there is an error in the binding.

My question is how can I assign the ValueType with a generic type?

 

Thanks.