Silverlight 3 Toolkit Charting : How to display the value on the bar?

You will need to create a new template for the BarDataPoint. I'll not post the whole template here because a) its quite large and b) I'm not sure where I stand on Copyright.

You will need to create a new template for the BarDataPoint. I'll not post the whole template here because a) its quite large and b) I'm not sure where I stand on Copyright. You can get the existing Template fairly easily if you have blend you should be able to create copy with the tool.

Alternatively you can get it from the source code its found in:- #someSourceCodeRootFolder\Controls. DataVisualization. Toolkit\Charting\DataPoint\BarDataPoint.

Xaml In a resource dictionary create this:- Basically what I've done is added that final TextBlock and bound it to the same FormattedDependentValue property that the ToolTip uses in its ContentControl. You could add further styling to the TextBlock to get the appearance that you want, you may also wish to do something different with the tool tip content. So with this style hanging about you can do this in the chart itself:- Note to lurking MSofties Can you please add the Templates to the documentation somewhere so that we don't need source code, Blend or Reflector to extract them?

Worked like charm! Thank you very much. Silverlight templating is awesome.

– funwithcoding Feb 12 '10 at 22:14 you may want to try out blogs.msdn. Com/delay/archive/2008/12/14/… to extract templates – Jags Jun 14 at 11:08.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions