I'd like to display the property "Title" from a list of objects in a ListBox:
<ListBox ItemsSource="{Binding SelectableSurveysByYear}"
DisplayMemberPath="{Binding Title}"
SelectedItem="{Binding SelectedSurvey}">
However, instead of the titles, all I see is the name of my class, three times. SelectableSurveysByYear is an ObservableCollection of Surveys:
public class Survey
{
public string Title { get; set; }
}
Where is my flaw?