<UserControl x:Class="SharepointToolbox.Views.Common.Spinner"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Width="20" Height="20">
    <Grid RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <RotateTransform x:Name="Rot" Angle="0" />
        </Grid.RenderTransform>
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation
                            Storyboard.TargetName="Rot"
                            Storyboard.TargetProperty="Angle"
                            From="0" To="360" Duration="0:0:1"
                            RepeatBehavior="Forever" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Grid.Triggers>
        <Ellipse Stroke="{DynamicResource BorderSoftBrush}" StrokeThickness="3" />
        <Ellipse Stroke="{DynamicResource AccentBrush}" StrokeThickness="3"
                 StrokeDashArray="3 3" StrokeDashCap="Round" />
    </Grid>
</UserControl>
