I have a custom class called ApplicationUser which has a number of properties. The ones of importance here are GivenName and Surname.
In the ctor for the window I have code which returns a List called _allUsers. This call is successful and the list is filled with the appropriate number of ApplicationUsers
So I then do something like:
_allUsers = CachingLayer.Get<List<ApplicationUser>>("allUserInformation");
cboListOfUsers.DataContext = _allUsers;
And the XAML:
<ComboBox Name="cboListOfUsers" ItemsSource="{Binding}" IsEnabled="{Binding Path = IsChecked, ElementName=rbAssignedTo}">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<TextBlock.Text >
<MultiBinding StringFormat=" {0}, {1} ">
<Binding Path="Surname" />
<Binding Path="GivenName" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
But there's no joy (the Combo Box remains resolutely empty)
What am I doing wrong here?