я пытаюсь сделать что-то вроде этого на упомянутом событии
private void image1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
//this.animateIC1.Begin();
Uri uri = new Uri("Images/1.png", UriKind.Relative);
ImageSource imgSource = new BitmapImage(uri);
this.imageBack1.Source = imgSource;
this.Storyboard1.Begin();
}
у него есть анимация, которая переворачивает переднее изображение и загружает заднее изображение.
, поэтому яне удалось получить желаемый результат, так как он не показывает изображение после переворачивания.
это мой "секретный" StoryBoard, который отлично работает в среде ExpressionBlend.
<Storyboard x:Name="Storyboard1">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="imageBack1">
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="90"/>
<EasingDoubleKeyFrame KeyTime="0:0:2" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="imageBack1">
<DiscreteObjectKeyFrame KeyTime="0:0:1">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
<DoubleAnimation Duration="0:0:1" To="90" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="image1" d:IsOptimized="True"/>
</Storyboard>