【发布时间】:2012-08-07 13:46:47
【问题描述】:
我在 UserControl 中有属性 ImageSource。如何将代码中的ImageSource 设置为资源目录中的图像?
我想将图像源绑定到属性ImageSource。
<Image Source="{Binding Path=ImageSource}" />
【问题讨论】:
-
@Clemens 对不起,这是一个错字,我的意思是
ImageSource
标签: wpf image code-behind imagesource