This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] How to create a dependency property

-2

Hi there,

I have created a number of user controls that I want to bind in WPF. Therefore I have created a Value property but when I am trying to bind it I get the following error message at runtime:

"Cannot bind the property 'Value' on the target control"

I have done some reading and http://msdn.microsoft.com/en-us/library/system.windows.data.binding.aspx states that the property used for binding must be a 'dependency property' (http://msdn.microsoft.com/en-us/library/ms752914.aspx).

This is where I got lost. There is no mention of 'dependency properties' in the ABL docs. How do I create this? Do I really need this or is there another way to support data binding on user controls in WPF?

Thanks for any insight!

asked 06 Oct '17, 10:26

gnanasekarP's gravatar image

gnanasekarP
9112
accept rate: 0%

closed 06 Oct '17, 10:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

2

Please note that this site is for questions related to OpenStreetMap. You'll probably have better luck somewhere else.

(06 Oct '17, 10:49) Hjart

The question has been closed for the following reason “Question is off-topic or not relevant” by Frederik Ramm 06 Oct ‘17, 10:52

Source code available on GitHub .