Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Databinding between no GUI Objects,

Thank you for reading,

I have two classes with two propertys. I would like to bind them. Is this possible or ist Databinding just between an Object an an GUI Element.

Cause everytime i bind the is an exeption that it cant be bind to this obejct cause there will be an exeption:

"An die Eigenschaft SelectedVariable für das Zielsteuerelement kann nicht gebunden werden. Parametername: PropertyName"*

Hope you can help,

Thomas

*something like: The Property of the selectedVariable cant be binded on the targetelement. Parametername: PropertyName.

like image 695
Thomas Avatar asked Nov 06 '22 02:11

Thomas


1 Answers

Assuming you're using the Binding class from the System.Windows.Data namespace, then you cannot just bind two objects together.

The source of the Binding can be a property on a POCO, but the Target needs to be a DependencyProperty on a DependencyObject

so in essence, yes - its a GUI technology.

like image 194
kiwipom Avatar answered Nov 13 '22 16:11

kiwipom