My current image path code in wpf is
image1.Source = new BitmapImage(new Uri(@"D:\My Work\Programming\wpf\Number Generator\Number Generator\Images\1.png"));
i want to give path as
image1.Source = new BitmapImage(new Uri("Images\1.png"));
how it is possible , please tell me if anyone can.

Nilesh SawardekarRank #648 · 3.7K reputationPosted Jul 14, 2016, 9:08 AM EDT
Vishal JadavRank #1,692 · 901 reputationPosted Jul 15, 2016, 5:52 AM EDT