Questions tagged [two-way-binding]
298 questions
0
votes
1 answer
Two way binding in dynamic angular directive
So, my goal is to ng-repeat over an array of activities and display a specific directive based off of the activity type. Right now, I'm just testing the idea out to see if it is viable. I can display a directive dynamically, but the key is I want…
![](../../users/profiles/787958.webp)
ScubaSteve
- 6,014
- 7
- 44
- 54
0
votes
2 answers
wpf twoway binding and update from code-behind
I've ToggleButton defined like this in XAML:
and 'DateFilter' defined like this:
public Boolean DateFilter { get; set; }
When I click the toggle-button,…
![](../../users/profiles/444058.webp)
Fred
- 557
- 1
- 5
- 18
0
votes
2 answers
TwoWay MultiBinding
Playing with MultiBinding:
What I want: clicking either checkbox should toggle all others.
Problem: clicking A doesn't change B, clicking B doesn't change A. Result works.
Question: how would I fix it, while still using MultiBinding?
P.S.: this is…
![](../../users/profiles/1997232.webp)
Sinatr
- 18,856
- 9
- 75
- 248
0
votes
2 answers
Combo Box Two Way Binding resets Properties
I have a combo box in a datagrid located in an activity. Based on combobox selection I populate another grid with controls programatically. User enters some data in these controls and then saves it. The object that the combo box is bound has many…
![](../../users/profiles/4282901.webp)
Syed Osama Maruf
- 1,565
- 2
- 18
- 34
0
votes
1 answer
C# MVVM TreeView TwoWay-Binding of hierarchical data
I googled for an answer to this for more than two weeks now. This usually means either I am blind or the idea is absurd. Anyways:
In a middle-sized, quite flexible project I'm storing configuration data in a hierarchical structure in the like of…
![](../../users/profiles/399908.webp)
Martin Hennings
- 14,732
- 8
- 38
- 65
0
votes
1 answer
TwoWay Binding WPF Treeview
WPF beginner here.
I managed to bind a TreeView control to a DataViewManager using the code shown at the end of this post. Everything works fine when populating the TreeView control initially but I want to implement two way binding so that I can use…
![](../../users/profiles/4850319.webp)
timur
- 1
0
votes
1 answer
WPF Bind User Control Coordinates
I have a User Control added to a Canvas. In another area of the application I have two TextBoxes that will get 2 values : X and Y. I need a two-way binding between the user control's top left corner coordinates and those 2 textboxes.
I don't mind…
![](../../users/profiles/219418.webp)
morsanu
- 975
- 19
- 35
0
votes
0 answers
0
votes
1 answer
Twoway multibinding validation
I have this case where there is a multibinding for ex,
textbox1 which value depend on textbox2 and textbox3 and the binding is two way,
all textbox applied the same validation rule for ex error if minus.
somehow if textbox1 got updated the textbox2…
![](../../users/profiles/279186.webp)
Kairu
- 1
0
votes
2 answers
WPF TwoWay Binding change value in PropertyChanged
I have a WPF application, and in this app, I have created a custom UserControl. This Control has the ability to load a defined Layout from XML. I would like to have a BOOL DependencyProperty on the UserControl which I can set true, and it would then…
![](../../users/profiles/2926590.webp)
Duncan
- 45
- 5
0
votes
1 answer
wpf twoway bound DependencyProperty setcurrentvalue not working
I'm working on a custom behavior for the visiblox chart. This custom behavior has a dependency property Value that identifies the position of a cursor that consists of vertical line draw in the chart. This cursor follows the mouse if I set the…
![](../../users/profiles/2520188.webp)
maykonvs
- 31
- 2
0
votes
1 answer
TwoWay binding listbox - removing item
I have a ListBox (x:Name = notesList) in my WPF application which takes items by ItemsSource from collection. The collection is a Notes property in my class Data and is of type ObservableCollection. I bind it this way: (data is a Data object…
![](../../users/profiles/2013763.webp)
Danu
- 67
- 1
- 10
0
votes
2 answers
Inverted TwoWay-MultiBinding
I'm trying to express an enumeration property in my view-model as a set of radio buttons in my view. So far, so good; I can express that with a two-way MultiBinding:
(rb1.IsChecked, rb2.IsChecked, rb3.IsChecked) <-> vm.Value
The multi-binding used…
![](../../users/profiles/1430156.webp)
O. R. Mapper
- 18,591
- 9
- 58
- 102
0
votes
2 answers
WPF, two-way binding to a hash table doesn't update the source object
I am wondering if anyone can help, I am able to bind to a hash table and display values correctly, yet the two-way binding I have specified doesn't update the object when I make changes.
…
suiva
0
votes
1 answer
TwoWay Binding of a ComboBox to a static property in .NET 4.5
Well, i just posted this question, but i figured that i am not doing anything wrong. My code (and the code of all of the answers) is correct, but my dev-maschine runs with .NET4.5 which apparently has a problem with the binding of the combobox...
So…
![](../../users/profiles/324207.webp)
Martin Booka Weser
- 3,032
- 4
- 25
- 40