Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Binding to Indexed Item (Dictionary, array, and custom classes) #110
Interesting - that's not a binding I've ever seen or used :)
Do you know if that element binding also works with INotifyCollectionChanged? And with IObservableDictionary in WinRt Or is it just fixed?
Is it possible you can also post more details on what types are allowed in Key? e.g. some examples or a link?
I'll link this to #87 - as the collection thing has been discussed there...
As a workaround in the short term, then you can probably achieve the same effect using a ValueConverter
However, I don't think that converter route would watch for INotifyCollectionChanged notifications currently.
Here is link that really helps http://msdn.microsoft.com/ru-ru/library/cc645024(v=vs.95).aspx
Indexers can be used for accessing properties in a path and obtaining items from a list, but with some notable restrictions:
It would seem that I was perhaps wrong about INotifyCollectionChanged binding...
It seems like the Mono ObserverableCollection fires:
As first step.... can you code review this Gist?
Will that class tokenise strings like:
Got to get that tokenising working first, then the actual binding will be quite quick to add I think :)
First version of this checked in to the vNextDialog branch - https://github.com/slodge/MvvmCross/tree/vNextDialog
Tested on Twitter on Droid using an image view:
Not been tested on MonoTouch yet
Names and namespaces might be changed.... It also desperately needs a test harness...