4

i need to bind an image on run time in code behind thing is it's for WPF user control how can i do it? think i'm totally new to WPF and please explain how to do it appreciate your reply. thanks

1 Answer 1

1

You can easily create binding in code : How to: Create a Binding in Codee

But it can be problematic form Image control, because Source property requires ImageSource type, but in XAML, you usualy specify URI itself and XAML will convert it apropriately. See more here : WPF Image UriSource and Data Binding

If you dont understand something, please edit your question.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.