Check out example codes for "c# wpf image source from resource programmatically". It will help you in understanding the concepts better.
Code Example 1
BitmapImage image = new BitmapImage(new Uri("/MyProject;component/Images/down.png", UriKind.Relative));
Learn ReactJs, React Native from akashmittal.com