Hi,
I have to make a chart in pure C#.
I want the items label on the axis to have a width of 120 and to wrap text content if it's too large.
I've tried to apply a style this way :
But, it doesn't work.
Please tell me what's wrong.
Thanks.
I have to make a chart in pure C#.
I want the items label on the axis to have a width of 120 and to wrap text content if it's too large.
I've tried to apply a style this way :
Style styleLabel =
new
Style(
typeof
(TextBlock));
styleLabel.Setters.Add(
new
Setter(TextBlock.TextWrappingProperty, TextWrapping.Wrap));
styleLabel.Setters.Add(
new
Setter(TextBlock.WidthProperty, 120));
telerikChart.DefaultView.ChartArea.AxisY.AxisStyles.ItemLabelStyle = styleLabel;
But, it doesn't work.
Please tell me what's wrong.
Thanks.