You can easily create a binding in code: How to create a binding in Codee
But this may be a problematic form of Image control, because the Source property requires an ImageSource type, but in XAML you usually specify the URI itself, and XAML will convert it accordingly. See here WPF Image UriSource and data binding here.
If you do not understand something, edit your question.
source share