我正在尝试将自定义对象列表绑定到WPF图像,如下所示:
<Image>
<Image.Source>
<BitmapImage UriSource="{Binding Path=ImagePath}" />
</Image.Source>
</Image>
Run Code Online (Sandbox Code Playgroud)
但它不起作用.这是我得到的错误:
必须设置"Property'UriSource'或属性'StreamSource'."
我错过了什么?