如何给AxisLabel名称加上边距
我有一个Silverlight图,并且需要在轴名称和值之间有相同的位置.
我使用了下面的代码来保证利润:
I have a silverlight graph and i need to have same place betweem axis name and values.
I used for that margin like code below:
Setter setX = new Setter(AxisLabel.MarginProperty, "0,15,0,0");
independentLA.TitleStyle.Setters.Add(setX);
这段代码工作正常.我尝试将其应用于Y轴.
This code work fine. I try it applied to axis Y.
Setter setY = new Setter(AxisLabel.MarginProperty, "0,0,0,15");
dependentLA.TitleStyle.Setters.Add(setY);
但是此代码不起作用.它和以前一样,但是不起作用.我不明白.
图片
我尝试将边距设置为:1500,1500,1500,1500,以了解它做了什么,但是什么都没有改变:)
为什么AXIS Y上的标签名称不保留空白?
谢谢
我解决了在轴名称上添加"\ n"的问题,但仍想知道为什么空白不能起作用:)
But this code dont work. It is the same like before, but dont work. I do not understand.
pic
I try to set margin like: 1500,1500,1500,1500 to find out what it done, but nothing changed :)
Why label name on AXIS Y do not margin ?
thanks
EDIT :
I solve this problem adding "\n" to axis name, but still wondering why margin do not work :)