<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
        <Button Content="OK" Canvas.Left="0" Width="100" Height="100">
            <Button.LayoutTransform>
                <RotateTransform Angle="0"/>
            </Button.LayoutTransform>
            <Button.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Red" Offset="0.4"/>
                    <GradientStop Color="Yellow" Offset="0.6"/>
                </LinearGradientBrush>
            </Button.Background>
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.Loaded">
                    <EventTrigger.Actions>
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation      Storyboard.TargetProperty="LayoutTransform.Angle" To="360" Duration="0:0:2"
AutoReverse="True" RepeatBehavior="Forever"/>
                                <DoubleAnimation Storyboard.TargetProperty="(Canvas.Left)" To="400" Duration="0:0:2"
AutoReverse="True" RepeatBehavior="Forever"/>
                                <ColorAnimation Storyboard.TargetProperty="Background.GradientStops[0].Color" To="Green" Duration="0:0:2"
AutoReverse="True" RepeatBehavior="Forever"/>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger.Actions>
                </EventTrigger>
            </Button.Triggers>
        </Button>
    </Canvas>