Silverlight アプリケーションを作成しました。画像を反転させたいので、コードビハインドからストーリーボードを作成しました。しかし、「ターゲット名 Imagename を解決できません」というエラーがスローされます。
Storyboard sbFlip = new Storyboard();
sbFlip.Duration = new Duration(TimeSpan.FromSeconds(3));
DoubleAnimationUsingKeyFrames FlipFront = new DoubleAnimationUsingKeyFrames();
DoubleAnimationUsingKeyFrames FlipBack = new DoubleAnimationUsingKeyFrames();
Storyboard.SetTargetName(FlipFront, strFrontSelectedValue);
Storyboard.SetTargetName(FlipBack, strBackSelectedValue);
Storyboard.SetTargetProperty(FlipFront, new PropertyPath("(UIElement.RenderTransform).(ScaleTransform.ScaleX)"));
Storyboard.SetTargetProperty(FlipBack, new PropertyPath("(UIElement.RenderTransform).(ScaleTransform.ScaleX)"));
SplineDoubleKeyFrame sFlipFront = new SplineDoubleKeyFrame();
SplineDoubleKeyFrame sFlipBack = new SplineDoubleKeyFrame();
sFlipFront.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(500));
sFlipFront.Value = 0;
sFlipBack.KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(500));
sFlipBack.Value = 1;
FlipFront.KeyFrames.Add(sFlipFront);
FlipBack.KeyFrames.Add(sFlipBack);
sbFlip.Children.Add(FlipFront);
sbFlip.Children.Add(FlipBack);
sbFlip.AutoReverse = true;
sbFlip.Completed += new EventHandler(this.sbFlip_Completed);
sbFlip.Begin();
どこが間違っているのですか?