<Image>
<Image.Source>
<Binding Path="ImageUri">
<Binding.TargetNullValue>
<ImageSource>/Assets/PlaceHolder.png</ImageSource>
</Binding.TargetNullValue>
</Binding>
</Image.Source>
</Image>
以上代码可以将 ImageUri 属性所指定图片展示出来,并在该属性为空时自动展示 /Assets/PlaceHolder.png 这张图片。