tags:

views:

448

answers:

1

Hi,

I need to get the path of an image through a value converter. However I can't find any examples of using a value converter without binding.

I would be looking to do something along these lines:

<Image source="{Value=Image1, Converter={ImageConverter}}" />

The image converter will then go check an image folder and return the correct file path.

+2  A: 

Why not just use a Binding like this:

<Image Source="{Binding ., Converter={StaticResource ImageConverter}, ConverterParameter=Image1}"/>

Won't that suffice?

HTH, Kent

Kent Boogaart
just the biz I'd say.
Preet Sangha