Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

Absolute Uri when querying the images source from the server

$
0
0

Dear Gurus!

In silverlight 5 application I want to show on client side some images of the object, wich are located in some folder with absolute address , for example D:/Images. Now I use images from the folder Images near the clientBin folder of the application and use next code:

            Uri myUri = new Uri(App.Current.Host.Source, "../Images/edds.jpg");
            itemImage = new BitmapImage(myUri);

and it works. How to change code when images are in some arbitrary folder , not in application?



Viewing all articles
Browse latest Browse all 1083

Trending Articles