Jump to content
Software FX Community

Newbie Databinding question


C0deMonkey

Recommended Posts

I am building a cpu performance chart in my application where I want to bind the chart to the current sampling of the computers cpu performance.  When I bind to the chart I am not getting anything to display.  Here is my xaml i'm sure that i am missing something.

<ChartFX:Chart Margin="136,45,23,52" Gallery="Line" Background="#FF000000" UseVisuals="True">

 <ChartFX:Chart.Series>

<ChartFX:SeriesAttributes BindingPath="{Binding Path=CurrentCpuPerformance, ElementName=ucCpuPerformance, Mode=Default}" Gallery="Line" Fill="{x:Null}" Stroke="#FFF75353"/>

 </ChartFX:Chart.Series>

</ChartFX:Chart>

CurrentCpuPerformance is a dependency property in my user control which is a float value representing the current performance of the cpu.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...