0

我们如何在 wp7 应用程序中同时使用 LowprofileImageLoader 和 Image Place holder?我已经浏览了这个这个链接,但无法一起使用。但是人们在评论中说他们可以通过更改 PlaceImage.cs 中的以下代码来使用两者:

if (null != _frontImage)

       {

           if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))

           {

               Delay.LowProfileImageLoader.SetUriSource(this, ((BitmapImage)this.Source).UriSource);

           }

       }   

但是当我这样做时,我得到了无效的参数错误。有人可以建议我如何解决这个问题吗?

4

1 回答 1

0

它应该是:

if (null != _frontImage)
{
    if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
    {
        Delay.LowProfileImageLoader.SetUriSource(_frontImage, ((BitmapImage) this.Source).UriSource);
    }
}

您要设置的是 _frontImage 的 UriSource。

于 2013-04-15T11:27:34.150 回答