Setting a source property of Image in Silverlight using converter -
i have page want display images in control template. image name show. using converter return bitmapimage this:
return new bitmapimage(new uri(value.tostring(), urikind.relativeorabsolute));
in xaml binding have:
image source="{binding thumbnail,converter={staticresource mapimagepath}}"/>
for reason not able see image @ all.
i have changed image extension .jpeg still not working.
am doing thing wrong or suggest me if wrong. thanks.
modify converter returns instance of bitmapimage
. converter returning string or uri actual type source
property imagesource
.
the conversion of string bitmapimage
magic xamlparser when supply value using converter need give correct type.
Comments
Post a Comment