Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a listbox with an itemtemplate that contains a chart. My problem is that the my columnseries dependent and independent values doesn't seem to bind.

XML
<DataTemplate x:Key="Template">
    <StackPanel HorizontalAlignment="Left">
        <toolkit:Chart Title="{Binding ID}" LegendStyle="{StaticResource LegendStyleNoBackground}" Padding="5" BorderThickness="0" Height="500" Width="800">
            <toolkit:ColumnSeries ItemsSource="{Binding}" DependentValuePath="m1_percent" IndependentValuePath="m1_period" Title="{Binding m1_period}" />
        </toolkit:Chart>
    </StackPanel>
</DataTemplate>


The databinding on chart title and columnseries title works, but not the dependent and independent value. i have checked m1_peroid, m1_percent that it's the correct name of the property.

Any ideas?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900