Hi MSFT,
I encounter a problem to binding a items collection to listbox with C++.
I could binding a single object to listbox itemtemplate, just like following:
Vector<String^>^ collection = ref new Vector<String^>;
collection->Append("test name");
listBox->ItemsSource = collection.
But i could not binding items collection into listbox, just like following:
Item^ item = ref new Item;//item is created by myself.
item->title = "test title";
item->name = "name";
Vector<Item^>^ collection = ref new Vector<Item^>;
listBoxt->ItemsSource = collection;
Maybe there is a special definition for Item managed class.
Please give me some help for this.
Thanks,
Kevin.