<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:gif="clr-namespace:Avalonia.Gif;assembly=Avalonia.Gif"
        x:Class="Slimak.MainWindow"
        Title="Slimak"
        Name="w"
        Width="400" Height="300"
        MinWidth="400" MinHeight="300"
        WindowStartupLocation="CenterScreen">
    <Grid Background="Black" 
          PointerPressed="InputElement_OnPointerOver"
          DragDrop.AllowDrop="True">
        <Image
            Stretch="Fill" 
            Source="avares://Slimak/resources/Slimak.png"
            IsVisible="{Binding !#w.IsEating}" />
        <gif:GifImage 
            Stretch="Fill"
            SourceUri="avares://Slimak/resources/Slimak_eating.gif"
            IsVisible="{Binding #w.IsEating}"/>
    </Grid>
</Window>
