WPF Binding to code behind methods
- by Matt B
Hi all,
This is annoying - I know how I'd do it in web...
I have a wpf image and I want to bind it's source property to a method, and pass in a property from it's bound item.
IE.
<image source="GetMySource({binding name})" />
Where GetMySource is
protected string GetMySource(string name)
{
return "images/"+name+".png";
}