Skip to main content

Microsoft Silverlight

Answered Question Scale Transform in one dimension and one directionRSS Feed

(0)

josboogz
josboogz

Member

Member

13 points

25 Posts

Scale Transform in one dimension and one direction

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

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Answered Question

Re: Scale Transform in one dimension and one direction

Hi,

Yes it is Default behaviour of Scale Transform.

Probably you can try that by changing Height Property Dynamically from code behind..

 

Mark as answer if this post answered your question.

Harsh Bardhan

surbhiydv
surbhiydv

Participant

Participant

1134 points

218 Posts

Re: Scale Transform in one dimension and one direction

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)

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities