Xaml 图像';s的IsLoading属性被卡住

Xaml 图像';s的IsLoading属性被卡住,xaml,xamarin,uwp,xamarin.forms,Xaml,Xamarin,Uwp,Xamarin.forms,我对UWP上的图像对象有问题。 它的IsLoading属性在图像加载后拒绝转到False,因此ActivityIndicator的IsRunning属性保持打开 同样的代码在Android emulator上工作 <StackLayout> <ActivityIndicator IsRunning="{Binding Source={x:Reference Img},Path=IsLoading}" IsVisible="{Bindin

我对UWP上的
图像
对象有问题。
它的IsLoading属性在图像加载后拒绝转到
False
,因此ActivityIndicator的
IsRunning
属性保持打开

同样的代码在Android emulator上工作

 <StackLayout>
    <ActivityIndicator
        IsRunning="{Binding Source={x:Reference Img},Path=IsLoading}"
        IsVisible="{Binding Source={x:Reference Img},Path=IsLoading}"
        />

    <Image
        x:Name="Img"
        Source="https://unsplash.it/1980/1080/?random"/>
</StackLayout>

它在Xamarin.uwp中。你可以看到,这位官员已经在去年处理了这个问题。但最新的nuget软件包尚未发布。你可以密切关注最新版本的发布日期

protected virtual async Task TryUpdateSource()
{
    // By default we'll just catch and log any exceptions thrown by UpdateSource so we don't bring down
    // the application; a custom renderer can override this method and handle exceptions from
    // UpdateSource differently if it wants
    try
    {
        await UpdateSource().ConfigureAwait(false);
    }
    catch (Exception ex)
    {
        Log.Warning(nameof(ImageRenderer), "Error loading image: {0}", ex);
    }
    finally
    {
        ((IImageController)Element)?.SetIsLoading(false);
    }
}

要等待nuget软件包,然后。。。谢谢