Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Require DoubleAnimation on ChildNode (Read 1855 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Require DoubleAnimation on ChildNode
May 11th, 2009 at 8:24am
Print Post  
Hi,

I have some ShapeNode in my application.I have attached a labelNode(ShapeNode) in each of the mainNode using labelNode.AttachTo(mainNode, AttachToNode.BottomCenter);.

Now I have applied double animation in mainNode, but by this only mainNode gets animation.I want, this should be apply in child node(labelNode) also.

Is there any way or property by which double animation can be performed on both the nodes simultanously?

Thanks,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require DoubleAnimation on ChildNode
Reply #1 - May 11th, 2009 at 1:54pm
Print Post  
You should run a second animation for the labelNode. If it has the same center as the one for the parent node, the nodes will scale uniformly; but since the center is given in coordinates relative to the node, you will have to use a separate DoubleAnimation instance.
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Require DoubleAnimation on ChildNode
Reply #2 - May 11th, 2009 at 2:39pm
Print Post  
I have already done this,But problem is that I can easily see that there are two nodes in which zooming is performed.I want a single look of zoom for both the node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Require DoubleAnimation on ChildNode
Reply #3 - May 11th, 2009 at 2:53pm
Print Post  
You haven't set correctly the ScaleTransform center if you can see a difference.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint