tags:

views:

24

answers:

2

I'm trying to do this:

imgUser.Source = new Uri(user.Photo);

But I'm getting an error that I cannot convert a URI to an ImageSource. Any help?

+3  A: 

BitmapImage is an ImageSource and can be created from a Uri:

imgUser.Source = new BitmapImage(new Uri(user.Photo));
Quartermeister
Thanks that worked.
Sergio Tapia