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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -