Tuesday, May 7, 2013

how to set source for an image dynamically from pictures folder in MVVM ?Explain with an example if possible

Please use Uri instead of ImageSource since Uri is more portable and consumes less memory when not in use.



public Uri ImageUri { get; set; }

And data bind like this:



<Image Source="{Binding ImageUri}" />



If you want more help, please show us what do you want to achieve.

No comments:

Post a Comment