Questions tagged [two-way-binding]

351 questions
4
votes
1 answer

Angular2: how to chain ngModel with two-way bound variable of other component?

I have a main-component which passes a variable to another component sub-component via custom two-way binding. The passed variable is used for an input tag via ngModel. These two variables are currently not in sync. How can I chain those two…
Pratik
  • 695
  • 2
  • 11
  • 29
4
votes
3 answers

Bind a control to a single value in a collection/array in WPF

In WPF I have a collection of bool? values and I want to bind each of these to a separate checkbox programmatically. I want the bindings to be TwoWay so that changing the value of the individual item in the collection in code updates the check box…
Matt Jenkins
  • 2,824
  • 1
  • 30
  • 34
4
votes
2 answers

Dictionary to ListView TwoWay binding - possible?

I'm attempting to bind a Dictionary to a ListView who's item template constist of a grid with 2 textboxes. Ideally I'd like to be able to modify both the key and the value of the KeyValuePair displayed in the ListView . Is that possible?
Maciek
  • 19,435
  • 18
  • 63
  • 87
4
votes
2 answers

Two way Binding in WPF does not work with static members

Matt Hamilton told me an interesting fact about WPF: binding in two way mode with a static variable is possible in version 4.5. Unfortunately V4.5 ist still beta, I decided to change my code to get my app finally run correct. But - still I have…
CodeCannibal
  • 324
  • 6
  • 21
3
votes
1 answer

WPF TwoWay Binding some elements to ObservableCollection

I need bind some ComboBoxes to one ObservableCollection. I have this ListView.
algreat
  • 8,592
  • 5
  • 41
  • 54
3
votes
1 answer

Vue 3: v-model and emit

I'm trying to use Vue3 two-way biding with v-model, but my emit() doesn't update the parent value. Could you please tell me where I'm wrong? Thank you! Parent looks like: