Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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:

C#
Setter setX = new Setter(AxisLabel.MarginProperty, "0,15,0,0");
independentLA.TitleStyle.Setters.Add(setX);


This code work fine. I try it applied to axis Y.
C#
Setter setY = new Setter(AxisLabel.MarginProperty, "0,0,0,15");
 dependentLA.TitleStyle.Setters.Add(setY);

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 :)
Posted
Updated 4-Jan-12 0:17am
v7

1 solution

check this link [^]
 
Share this answer
 
Comments
iamgun10a 4-Jan-12 6:15am    
Thats not solution for my problem. They rotate values to fit. My values are OK, i need push a bit axis NAME

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900