RE: Storyboard crash

2012-06-26 Thread Greg Keogh
Chui has it!

 

Storyboard.TargetProperty="(TransformGroup.RenderTransform).Children[0].Angl
e"

 From="90" To="0">

 

Now I look again, this makes the TargetProperty match the first child of the
control's RenderTransform. What confuses me is that I pasted the original
XAML over from a WPF app where it was working the "wrong" way. This subtle
change makes it work in Silverlight.

 

  



  





  



  

 

Thanks heaps, the corny zoom-out animation impresses dumb schmucks in
marketing. I guess that's why animations were invented.

 

Greg

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Storyboard crash

2012-06-25 Thread Greg Keogh
Shane, sadly the x:Name didn't work because the target name isn't resolved.
Chui, I'll look at your suggestion when I have some experimental time later
tonight -- Greg 

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: Storyboard crash

2012-06-25 Thread Chui Tey
Greg,

Try casting



















Chui Tey
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


RE: Storyboard crash

2012-06-25 Thread Shane Morris (Automatic Studio)
Don't ask me what's wrong, but the way I would get around it is to name the 
Transforms you want to manipulate and address them by name.


  

  

  

  
  
  

  
  

  


  

  



Shane


From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Greg Keogh
Sent: Monday, 25 June 2012 4:02 PM
To: 'ozSilverlight'
Subject: Storyboard crash

Folks, in the XAML and code below I'm getting the crash "Cannot resolve 
TargetProperty RenderTransform.Children[0].Angle on specified object." It all 
looks correct to me, can anyone see what's wrong? This code was copied from a 
WPF app where it's working fine and creates a nice "spinout" effect on a 
control. In my SL4 app it dies -- Greg

var spinout = (Storyboard)grid.Resources["StorySpinout"];
spinout.Begin();



  

  

  

  
  
  

  
  

  


  

  





___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Storyboard crash

2012-06-24 Thread Greg Keogh
Folks, in the XAML and code below I'm getting the crash "Cannot resolve
TargetProperty RenderTransform.Children[0].Angle on specified object." It
all looks correct to me, can anyone see what's wrong? This code was copied
from a WPF app where it's working fine and creates a nice "spinout" effect
on a control. In my SL4 app it dies -- Greg

 

var spinout = (Storyboard)grid.Resources["StorySpinout"];

spinout.Begin();

 

 



  



  



  



  

  

  



  

  



  





  



  



 

 

 

 

___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight