0

In Javafx for bidirectional binding a combobox selected item to an object property(attribute) simply I used :

linkComboBox.valueProperty().bindBidirectional(linkBean.linkTypeProperty());

Now I want to do this action in C# .net (windows form) can I do that as simple as javafx?

I have read questions about c# binding to object property, the problem is combo box data source must be a class while in my question combobox items are static and I just want to bidirectional bind selected item to a property of an object.

Nastaran Hakimi
  • 695
  • 1
  • 16
  • 36
  • @stuartd my question is different. – Nastaran Hakimi Dec 12 '16 at 15:15
  • The answer to the duplicate question answers this one. –  Dec 12 '16 at 15:18
  • @Amy its bidirectional binding? when combobox is loaded does it use object property to choose item which was selected before? – Nastaran Hakimi Dec 12 '16 at 15:22
  • that question doesn't refer to bidirectional binding – Nastaran Hakimi Dec 12 '16 at 15:26
  • @N_93 your question asks _"binding a combobox selected item to an object property"_ - the linked question is titled _"Binding a ComboBox SelectedItem to an Object Property"_ - and the question doesn't need to refer to "bidirectional binding" as that's what a DataBinding is. – stuartd Dec 12 '16 at 15:31
  • @stuatrd consider my question title and the javafx code please. – Nastaran Hakimi Dec 12 '16 at 15:33
  • We have, and have rejected this question as a duplicate of the marked question. Please take the time to understand it and apply it to your own problem. It *does* address this question. –  Dec 12 '16 at 16:43

0 Answers0