Skip to content

Using IMap/IObservableMap as ItemsSource for ListView #418

@Holo-Krzysztof

Description

@Holo-Krzysztof

I've described the problem on StackOverflow already and also filed a docs issue before finding out that the docs are actually technically right.

To summarize, I can bind an IVector<T> to a ListView control just fine, but when I substitute it with an IMap<K,V> or IObservableMap<K,V> I get exceptions. As I've found out this is due to IMap<K,V> not implementing IIterable<IInspectable> which is what the ItemsSource property expects.

However, it is possible to use Dictionary in C# and everything works just fine, so there must be something else happening here. Do you know how to CLR handles this and how I can accomplish this in C++?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions