How to use a ListBox in a CellContentTemplate
I have a Class called Planner with the usual properties (Name, Address, etc.) and an ObserveableCollection(Of Planner). I use this collection as follows:
cvsPlanners.Source= <the ObserveableCollection mentioned above>
I want to use a ListBox in a gridcontrol to display the name property. This is my XAML:
<xcdg:Column
FieldName="PlannerID"
Title="Planner">
<xcdg:Column.CellContentTemplate>
<DataTemplate>
<ListBox
ItemsSource="{Binding Source={StaticResource cvsPlanners}}"
DisplayMemberPath="FullName"
SelectedValuePath="PlannerID">
</ListBox>
</DataTemplate>
</xcdg:Column.CellContentTemplate>
</xcdg:Column>
But this is not working – a name appears in the cell but not in a ListBox and not the correct name.
What is my error?