【发布时间】:2018-10-08 15:39:47
【问题描述】:
所以我尝试使用 async-await 与 bitmapImage 列表进行绑定,但由于某种原因,我在 UI 上看不到图像。
在我尝试更新属性的循环中,当我这样做时:
ImageSource = imageList[2];
或 0 到 9 之间的任何其他数字,则图像将显示在 UI 屏幕中。
这是我的代码的一部分,直到没有发生绑定的循环:
编辑:这是问题:
private BitmapImage imageSource = null;
public BitmapImage ImageSource
{
get
{
return imageSource;
}
set
{
imageSource = value;
// Call OnPropertyChanged whenever the property is updated
OnPropertyChanged("MessagePerSec");
}
}
【问题讨论】:
标签: c# wpf binding async-await bitmapimage