<Grid
    x:Class="Pixeval.Controls.LazyImage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Pixeval.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    CornerRadius="{ThemeResource ControlCornerRadius}"
    mc:Ignorable="d">
    <!--  ReSharper disable once UnusedMember.Local  -->
    <ProgressRing
        x:Name="ProgressRing"
        Width="{x:Bind _progressRingSize}"
        Height="{x:Bind _progressRingSize}"
        IsActive="{x:Bind controls:C.IsNull(Source), Mode=OneWay}" />
    <Image
        HorizontalAlignment="{x:Bind HorizontalImageAlignment, Mode=OneWay}"
        VerticalAlignment="{x:Bind VerticalImageAlignment, Mode=OneWay}"
        Source="{x:Bind Source, Mode=OneWay}"
        Stretch="{x:Bind Stretch, Mode=OneWay}" />
</Grid>
