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.
<Grid x:Name="LayoutRoot"> <Grid.Resources> <Storyboard x:Key="StorySpinout" Duration="0:0:1.0" BeginTime="0:0:0.2"> <DoubleAnimation Storyboard.TargetName="Child0" Storyboard.TargetProperty="Angle" From="90" To="0"> <DoubleAnimation.EasingFunction> <BackEase EasingMode="EaseOut" Amplitude="0.5"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> <DoubleAnimation Storyboard.TargetName="Child1" Storyboard.TargetProperty="ScaleX" From="0.0" To="1.0"/> <DoubleAnimation Storyboard.TargetName="Child1" Storyboard.TargetProperty="ScaleY" From="0.0" To="1.0"/> </Storyboard> </Grid.Resources> <comn:WidgetHelpControl x:Name="helpCtl"> <comn:WidgetHelpControl.RenderTransform> <TransformGroup> <RotateTransform x:Name="Child0" Angle="90" CenterX="200" CenterY="200" /> <ScaleTransform x:Name="Child1" CenterX="200" CenterY="200" ScaleX="0.0" ScaleY="0.0"/> </TransformGroup> </comn:WidgetHelpControl.RenderTransform> </comn:WidgetHelpControl> </Grid> 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(); <Grid x:Name="LayoutRoot"> <Grid.Resources> <Storyboard x:Key="StorySpinout" Duration="0:0:1.0" BeginTime="0:0:0.2"> <DoubleAnimation Storyboard.TargetName="helpCtl" Storyboard.TargetProperty="RenderTransform.Children[0].Angle" From="90" To="0"> <DoubleAnimation.EasingFunction> <BackEase EasingMode="EaseOut" Amplitude="0.5"/> </DoubleAnimation.EasingFunction> </DoubleAnimation> <DoubleAnimation Storyboard.TargetName="helpCtl" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleX" From="0.0" To="1.0"/> <DoubleAnimation Storyboard.TargetName="helpCtl" Storyboard.TargetProperty="RenderTransform.Children[1].ScaleY" From="0.0" To="1.0"/> </Storyboard> </Grid.Resources> <comn:WidgetHelpControl x:Name="helpCtl"> <comn:WidgetHelpControl.RenderTransform> <TransformGroup> <RotateTransform Angle="90" CenterX="200" CenterY="200" /> <ScaleTransform CenterX="200" CenterY="200" ScaleX="0.0" ScaleY="0.0"/> </TransformGroup> </comn:WidgetHelpControl.RenderTransform> </comn:WidgetHelpControl> </Grid>
_______________________________________________ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight