Metro UI with python

Feb 4, 2014 at 1:56 PM
Edited Feb 4, 2014 at 2:23 PM
Hello
Very cool UI features. Seems very simple to use. I am having a problem however. I am using Ironpython (has to be ironpython) and I am trying to create a chart with Metro UI.

I can only seem to create the <chart:PieChart> tag with the styles properties assosciated with it.
<chart:PieChart Style="{StaticResource MinimalChartStyle}" 
           ChartTitle="Title"  
           ChartSubTitle="Subtitle"  
           SelectedItem="{Binding Path=pc_list, 
           Mode=TwoWay}" 
           Margin="-5" 
           Height="Auto" 
           Width="Auto" 
           Background="{x:Null}" 
           Foreground="White" 
           BorderBrush="{x:Null}">
When I try to add this:
<chart:PieChart.Series>
   <chart:ChartSeries
    SeriesTitle="pc_list"
    DisplayMember="Category"
    ValueMember="Number"
    ItemsSource="{Binding Path=pc_list}" 
    Name="pc_01" Foreground="White"/>
</chart:PieChart.Series>
Nothing really happens. I don't get a compile error, it just adds nothing.
I am wondering if it is perhaps because nothing is binding to it. I have tried setting up the binding in ironpython but I don't know if I have done it correctly. This is the code side:
class pieChartData():
    def __init__(self):
        self.Category = ""
        self.Number = 0

#Creating pie chart info
pc_data_01 = pieChartData()
pc_data_01.Category = "Title 01"
pc_data_01.Number = number_variable_01
        
pc_data_02 = pieChartData()
pc_data_02.Category = "Title 02"
pc_data_02.Number = number_variable_02
        
pc_data_03 = pieChartData()
pc_data_03.Category = "Title 03"
pc_data_03.Number = number_variable_03

pc_list = []
pc_list.append(pc_data_01)
pc_list.append(pc_data_02)
pc_list.append(pc_data_03)


self.pc_01.DataContext = pc_list
But the graph does not show up. I don't even know if I am doing this correctly or if it works with ironpython.

Thanks for any help