如何给AxisLabel名称加上边距 [英] How to margin AxisLabel names

查看:105
本文介绍了如何给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 :)

推荐答案

选中此 ^ ]


这篇关于如何给AxisLabel名称加上边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆