Am stuck to load images from my file location in WPF.
here is my xaml
If it's a file located somewhere on the drive (not a resource), better use an ABSOLUTE path:
image.Source = new BitmapImage(new Uri(AppDomain.CurrentDomain.BaseDirectory + "image.png", UriKind.Absolute));
This code detects the running folder and builds the path relative to it
Here's the catch
image1.Source = new BitmapImage(new Uri(filePath));