Answered by:

How to bind ListView to Platform::Collections::Map

Question

I have a class with a Platform::Collection::Map data member. The class implements INotifyPropertyChanged and I have added an IObservableMap property for the Map. When I try to bind this property to a ListView control, nothing happens.

Answers

I have tried many method but I still couldn't bind a map to a listview. And I think it is impossible to bind them together.

Every time I try to bind them and I get an error that the map couldn't be the source of a listview. I think we also have no reason to do so, just store the value to a vector and bind the vector to the listview is more suitable.

Sorry for my careless again, and in the grid app, it used the map only for store data.

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

All replies

Maybe, you could build a Grid app, and look into NavigationHelper.h file which is within Common folder.

There is a similar class you could refer.

Regards!

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Sorry for my careless, I paste the wrong image. On above image, you could also find the grid app on #6 item of the list. It is here:

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

I have tried many method but I still couldn't bind a map to a listview. And I think it is impossible to bind them together.

Every time I try to bind them and I get an error that the map couldn't be the source of a listview. I think we also have no reason to do so, just store the value to a vector and bind the vector to the listview is more suitable.

Sorry for my careless again, and in the grid app, it used the map only for store data.

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.