views:

12

answers:

0

In my project i'm creating new Typeobject (using Reflection)

So i have object of type {TempType41459726} (for example)

How can i add DataBinding to the properties of these object?

Binding binding = new Binding("propertyname");
        binding.Source = this.Action;
        binding.Mode = BindingMode.TwoWay;
        element.SetBinding(elementProperty, binding);

this is how i bind the properties of a known objectType, like a textbox (where elementProperty is TextBox.TextProperty)

is there a way to bind values of objects who are created with reflection?