Reputation: 3733
I am using Web Services to receive a list of objects which I have then directly data bound to pushpins. However the object has coordinates as a latitude and longitude (so separate properties). Whilst I can obviously add a Geocoordinate Location property to the auto-generated code I would rather not (as it is auto-generated)
So when data binding to the pushpin it wants a location but I don't know how you can bind it to two separate items. So I thought maybe a converter could take the 2 items and return a location but I don't think a converter can take 2 values like this?
MultiBinding looked like the solution but doesn't seem to exist in Silverlight unfortunately so looks like a different approach is necessary
So, is there a way to bind like this?
Thanks
Upvotes: 0
Views: 430
Reputation: 913
Make an temporary object that stores the two values as properties and pass this to the converter. Multibinding is not supported, but there are a couple ways around that. This is one way
Upvotes: 2