いくつかのプロパティを持つApplicationUserというカスタムクラスがあります。ここで重要なのはGivenNameとSurnameです。
ウィンドウのコンストラクターには、_allUsersというリストを返すコードがあります。この呼び出しは成功し、リストには適切な数のApplicationUsersが入力されます
だから私は次のようなことをします:
_allUsers = CachingLayer.Get<List<ApplicationUser>>("allUserInformation");
cboListOfUsers.DataContext = _allUsers;
そして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>
しかし、喜びはありません(コンボボックスは断固として空のままです)
私はここで何が間違っているのですか?