NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 06 Oct '17, 10:26

question was seen: 834 times

last updated: 06 Oct '17, 10:52

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum