[Unity] Issues with binding controls to a view model
Posted: 08 May 2014, 00:15
Hello.
I have a few questions regarding binding of controls as I stumbled over a few issues yesterday. But before I start I should probably mention that I use noesisGUI within Unity.
As I said I was trying out the binding of a few controls to a view model. It worked well with textblocks, textboxes and even binding to a command on a button worked without any problems. My first try binding the value property of a progressbar failed on the other hand. However, after explicitly telling it that's a one-way-binding it worked. Is there a reason why I have to explicitily state it?
After that I tried to bind a slider but I didn't get that one to work at all. In one of the sameples I saw that you could bind the value to another framework element, but appearantly it doesn't seem work with a view model.
Did I do something wrong, is it a bug or just not supported right now? Is there an overview somewhere what bindings are already supported?
I also tried to fill a listbox but that didn't work with binding too. So I had to fill it manually to get it to work. What type of collection should I use for itemsource controls or does the binding doesn't work at all? The listview seems to have the same problem.
Somewhere on your forums I read that ValueConverters aren't supported within Unity. But that was a few months ago. Has that changed already or is there an estimated release date?
I have a few questions regarding binding of controls as I stumbled over a few issues yesterday. But before I start I should probably mention that I use noesisGUI within Unity.
As I said I was trying out the binding of a few controls to a view model. It worked well with textblocks, textboxes and even binding to a command on a button worked without any problems. My first try binding the value property of a progressbar failed on the other hand. However, after explicitly telling it that's a one-way-binding it worked. Is there a reason why I have to explicitily state it?
After that I tried to bind a slider but I didn't get that one to work at all. In one of the sameples I saw that you could bind the value to another framework element, but appearantly it doesn't seem work with a view model.
Did I do something wrong, is it a bug or just not supported right now? Is there an overview somewhere what bindings are already supported?
I also tried to fill a listbox but that didn't work with binding too. So I had to fill it manually to get it to work. What type of collection should I use for itemsource controls or does the binding doesn't work at all? The listview seems to have the same problem.
Somewhere on your forums I read that ValueConverters aren't supported within Unity. But that was a few months ago. Has that changed already or is there an estimated release date?