<UserControl x:Class="Valg.EVA.Skanning.UserInterfaceElements.Spinner.SpinnerView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Spinner="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.Spinner" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:animatedGif="clr-namespace:Valg.EVA.Skanning.UserInterfaceElements.AnimatedGif"
             mc:Ignorable="d"
             BorderBrush="#4C6E1E"
             BorderThickness="8px"
             Background="White"
             d:DataContext="{d:DesignInstance d:Type=Spinner:SpinnerViewModel}">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Valg.EVA.Skanning.Assets;component/ResourceDictionaries/ResourceLibrary.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Margin="20"  MaxWidth="500">
        <TextBlock TextWrapping="Wrap" Style="{StaticResource TextBlockLargeHeader}" Text="{Binding Message}" />
        <Image Stretch="None" Margin="5, 15"
                                               HorizontalAlignment="Center"
                                               animatedGif:ImageBehavior.AnimatedSource="/Valg.EVA.Skanning.Assets;component/Images/waiting.gif">
        </Image>
    </StackPanel>
</UserControl>
