I have ObservableCollection from class named A. (ObservableCollection<A>).
This collection (lets call it listA) is binded to ListBox (lets call it itemsList).
This ListBox has SelectionMode=Extended, so I want to be able to select multiple items.
I'm trying to get the selected items of that itemsList. The problem is that the SelectedItems returns list of objects, and I dont know how to "convert" it to ObservableCollection from class A.
I need to put it in the xml, for instance, if I have a TextBox binded to string in class A.
Example:
<TextBox Text={Binding ElementName=itemsList, Path=SelectedItems.stringA}"/>
And of course that I have the DataContext to that TextBox