ItemsControl にグループ化を追加しました。
<ItemsControl Style="{StaticResource SellingDashboardToDosList}" Grid.Row="2" BorderThickness="1" Background="#C7E8F8" HorizontalAlignment="Stretch" ItemsSource="{Binding ToDoList}" >
<ItemsControl.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>
<Style TargetType="GroupItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GroupItem">
<GroupBox Header="{Binding Name}">
<ItemsPresenter />
</GroupBox>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</GroupStyle.ContainerStyle>
</GroupStyle>
</ItemsControl.GroupStyle>
</ItemsControl>
空の GroupBox だけが表示されるようになりました。Snoop ツールを使用してアプリケーションを調査したところ、GroupBox ItemPresenters が空であることがわかりました。その理由は何でしょうか?
ItemsControl (ItemsControl.GroupStyle 要素) からグループ化を削除すると、すべてが正常に機能し、すべての項目が再び表示されます。すべてのアイテムを表示するために、基になるデータ コンテキストを変更する必要はありません。データ コンテキスト (ItemsSource binging) はCollectionViewSource型です。
バインディング トレースがオンになっていますが、バインディング エラーは表示されません。