0

I was looking at this post.

I was wondering if it was possible to make a image swivel in wpf?

If not, how would i change the solution to make my WPF image swivel repeatedly?

Willem
  • 9,166
  • 17
  • 68
  • 92
  • 1
    Seen [this question](http://stackoverflow.com/questions/6228190/wpf-control-flip/6228730#6228730)? – H.B. Aug 29 '11 at 10:06

1 Answers1

1

I found this simple solution:

This is all you need.

<pl:Planerator Name="planerator">
        <Image Name="logo"
           Source="somePath" >
            <Image.Triggers>
                <EventTrigger RoutedEvent="Image.Loaded">
                    <BeginStoryboard>
                        <Storyboard TargetProperty="ScaleX" RepeatBehavior="Forever">
                            <DoubleAnimation Storyboard.TargetName="planerator" 
                                             Storyboard.TargetProperty="RotationY"
                                             From="0" To="360"
                                             BeginTime="0:0:0"
                                             Duration="0:0:5"  
                                             AutoReverse="False"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Image.Triggers>
        </Image>
    </pl:Planerator>
Willem
  • 9,166
  • 17
  • 68
  • 92