It can be very difficult then to bind a property on those elements…Let’s illustrate with a simple example: we want to display a list of products in a System. Data Error: 2 : Cannot find governing Framework Element or Framework Content Element for target element.
Please note: the data context property of the user control inherits from the parent. But user controls don’t anticipate a data context type. Writing to one writes to the other and the dependency property itself keeps the coalesced value.
But I’m not going to give up so soon, at least not while there are other options to consider 😉 The solution to our problem is actually quite simple, and takes advantage of the even when they’re not in the visual or logical tree.
I don’t know the exact mechanism that enables this behavior, but we’re going to take advantage of it to make our binding work…
Now you spend 30 minutes trying to map your Text DP to your text Search.
Text until you finally figure out that your DP snippet lead you astray and there is one more step that didn't get included in the shortcut.