Questions tagged [recursive-databinding]

7 questions
11
votes
2 answers

XAML Binding to the opposite of another element

I am developing a simple exercise and want to know if there is a way to bind to the opposite of another element using only XAML. For example. I have two buttons on a form, Start and Stop perhaps for a timer. I dont want both to be enables at the…
Francis Rodgers
  • 4,565
  • 8
  • 46
  • 65
3
votes
1 answer

How do I databind to a IGrouping in WPF?

I'm having a hard time getting this to work, and I'm hopelessly confused with all the templates one needs to use. Here's the situation. I want to have a menu dynamically created. The code takes a list of objects, groups the list, and then sets the…
Matt
  • 6,264
  • 10
  • 54
  • 82
2
votes
1 answer

Recursive databinding on treeview

I want to view a folder structure in a treeview using a databinding. The folder class just has a property list of children and a property name. If something changes it will fire the according event. This is it: public class Folder :…
clx
  • 794
  • 2
  • 8
  • 19
1
vote
1 answer

Does subscribing a property - in knockoutjs - that sets itself pose a problem?

I'm using knockoutjs to handle different events - one of them is i want to add thousand seperators to a price input field. So i subscribe a change event to my price field and that does some magic to add missing seperators and writes it back into the…
Per Hornshøj-Schierbeck
  • 15,097
  • 21
  • 80
  • 101
1
vote
1 answer

.NET WinForms DataBinding - BindingList where some implementations of IBindableItem may also implement IList

This is related to another question of mine, and unfortunately I'm having a difficult time summarizing the issue in my Title--so please bear with me. I've created a databindable class called Folder which implements a ITreeItem interface and inherits…
STW
  • 44,917
  • 17
  • 105
  • 161
0
votes
3 answers

Data binding in nested custom polymer elements (recursive data-binding)

I try to bind custom sub elements to values of local storage by using polymer's template repeat functionality like this: