![](/img/trans.png)
[英]Using LowProfileImageLoader to load byte[] image from server in WP7 app
[英]How to use LowprofileImageLoader and Image Place holder together in wp7?
我們如何在wp7應用程序中一起使用LowprofileImageLoader和Image Placeholder? 我已經經歷了這個和這個鏈接,但無法一起使用。 但是人們在評論中說,他們可以通過在PlaceImage.cs中更改以下代碼來同時使用兩者:
if (null != _frontImage)
{
if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
{
Delay.LowProfileImageLoader.SetUriSource(this, ((BitmapImage)this.Source).UriSource);
}
}
但是,當我這樣做時,我得到了無效的參數錯誤。 有人可以建議我如何解決這個問題嗎?
它應該是:
if (null != _frontImage)
{
if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
{
Delay.LowProfileImageLoader.SetUriSource(_frontImage, ((BitmapImage) this.Source).UriSource);
}
}
您要設置的是_frontImage的UriSource。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.