C# WPF图表工具包。绑定标签';s ColumnDataPoint中的内容到ViewModel DataPoint属性

C# WPF图表工具包。绑定标签';s ColumnDataPoint中的内容到ViewModel DataPoint属性,c#,wpf,wpftoolkit,C#,Wpf,Wpftoolkit,我有一个扩展的可观测集合,它保存数据点和一些额外的信息 public class ExtendedCollection : ObservableCollection<KeyValuePair<string, KeyValuePair<string,int>>> { } 最后,我尝试在每个数据点列中模板化的标签上显示集合项的“Value.Key” <chartingToolkit:ColumnSeries Name="columnSeries" Dep

我有一个扩展的
可观测集合
,它保存数据点和一些额外的信息

public class ExtendedCollection : ObservableCollection<KeyValuePair<string, KeyValuePair<string,int>>>
{

}
最后,我尝试在每个数据点列中模板化的标签上显示集合项的“
Value.Key

<chartingToolkit:ColumnSeries Name="columnSeries" DependentValuePath="Value.Value" IndependentValuePath="Key" ItemsSource="{Binding ColumnValues}">
    <chartingToolkit:ColumnSeries.DataPointStyle>
        <Style TargetType="chartingToolkit:ColumnDataPoint">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="chartingToolkit:ColumnDataPoint">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="30" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Label Grid.Row="0" Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type chartingToolkit:ColumnSeries}},Path=DataContext.ColumnValues.Value.Key, Mode=TwoWay}"></Label>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </chartingToolkit:ColumnSeries.DataPointStyle>
</chartingToolkit:ColumnSeries>


我为
标签
内容
尝试了许多不同的
绑定
,但没有一种有效。如何将
内容
链接到
值。
列数据点
的键

扩展集合
属性没有
属性,但列的
数据上下文
具有:

<Label Grid.Row="0" Content="{Binding Value.Key}"></Label> 

<Label Grid.Row="0" Content="{Binding Value.Key}"></Label>