ScaleTransform and CenterX

Posted by Vasco Correia on Stack Overflow See other posts from Stack Overflow or by Vasco Correia
Published on 2010-05-24T15:19:16Z Indexed on 2010/05/24 15:21 UTC
Read the original article Hit count: 204

Filed under:

I have the following code

    <Canvas Width="800" Height="600">

...

In the UserControl I animate the ScaleTranform to 1. I want UserControl to "grow" from its center, but it "grows" from the upper left corner of it. The values in CenterX and CenterY do nothing. How can I make it Scale as I want?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about wpf