Skip to main content
Home Forums Silverlight Design Designing with Silverlight Scale Transform in one dimension and one direction
2 replies. Latest Post by surbhiydv on September 24, 2008.
(0)
josboogz
Member
13 points
25 Posts
09-16-2008 5:25 AM |
Hi All,
I would like to create an animation of a bar chart bar increasing in the Y direction but only upwards i.e. positive direction with its base remaining still. ScaleTransform increases the rectangle in both the +ve and -ve direction of Y. Is there any way of doing this easily rather than adding a translate transform together with the scale transform?
If this is the only way, how do i procedurally add two transforms within the same animation?
Thanks,
jos
HarshBar...
Star
9908 points
1,719 Posts
09-16-2008 5:38 AM |
Hi,
Yes it is Default behaviour of Scale Transform.
Probably you can try that by changing Height Property Dynamically from code behind..
surbhiydv
Participant
1134 points
218 Posts
09-24-2008 7:43 AM |
Hi Jos
You can achieve that in blend also by first shifting centre point of your chart bar to its bottom and then increase its height. In that way it will gain height in upward direction only.
(Please 'Mark as Answer'...........if it helps you)