How is image binding dynamically WPF?

I need to link the runtime image in the code behind the WPF control, how can I do this? I think I'm completely new to WPF and will explain how to do this to appreciate your answer. thanks

+4
source share
1 answer

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.

+2
source

Source: https://habr.com/ru/post/1347664/


All Articles