I am evaluating the Telerik controls to see if they will work better for my team than the current Infragistics controls we are using. So I start writing a sample application that will demonstrate a resource monitor we planned on writing. My problem is that the chart works for a couple seconds, then stops working, but if I resize the application, it starts working again for a few seconds, then stops. Here is my Xaml:
I am binding to an ObservableCollection that contains objects that implement INotifyPropertyChanged. For my sanity I did this:
I can see the values updating, so I know my events are firing, the Chart just isn't updating. If needed I can attach the entire project. Any ideas?
<chart:RadCartesianChart Grid.Column="0" Grid.Row="0"> <chart:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis FontFamily="Segoe UI" FontSize="12"/> </chart:RadCartesianChart.HorizontalAxis> <chart:RadCartesianChart.VerticalAxis> <chartView:LinearAxis Minimum="0" Maximum="100"/> </chart:RadCartesianChart.VerticalAxis> <chartView:BarSeries ItemsSource="{Binding LogicalProcessors}" CategoryBinding="DisplayName" ValueBinding="Value"> <chartView:BarSeries.PointTemplate> <DataTemplate> <Rectangle Fill="Green"/> </DataTemplate> </chartView:BarSeries.PointTemplate> </chartView:BarSeries></chart:RadCartesianChart>I am binding to an ObservableCollection that contains objects that implement INotifyPropertyChanged. For my sanity I did this:
<ItemsControl Grid.Column="0" Grid.Row="1" ItemsSource="{Binding LogicalProcessors}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel/> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Value}"/> </DataTemplate> </ItemsControl.ItemTemplate></ItemsControl>I can see the values updating, so I know my events are firing, the Chart just isn't updating. If needed I can attach the entire project. Any ideas?