how to add images from file location WPF

Posted by Unknown
how to add images from file location WPF

In WPF development working with the images most of the new developers to WPF they struck at the loading the images from the file location.There is a simple way to accomplish to this.
 

Simply we can use

image1.Source = new BitmapImage(new Uri(filePath));


Here you can use the filepath with help of new uri class. 
Labels:

Post a Comment

 
test