ItemsControlのItemsSourceがバインドされているリストのオブジェクトにIndexプロパティを作成しましたが、コンバーターにブレークポイントを設定すると、そのバインディングの値はDependancyProperty.UnsetValueになります。 ContentPresenterのデータコンテキストはそのオブジェクトです。オブジェクトにプロパティがありますが、なぜIndexプロパティが表示されませんか?ItemsControl内でバインディングが失敗する理由
<ItemsControl ItemsSource="{Binding Charts}" x:Name="ItemsControl">
<ItemsControl.ItemTemplate>
<ItemContainerTemplate >
<ContentPresenter Content="{Binding}">
<ContentPresenter.Visibility>
<MultiBinding Converter="{StaticResource Converter}">
<Binding Path="Index"/>
<Binding Path="WhichAreVisible" />
</MultiBinding>
</ContentPresenter.Visibility>
</ContentPresenter>
</ItemContainerTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
バインドされたオブジェクトのコードを渡せますか? –