When try to execute it give an error. in my stand alone application
hare is my code
var uri = new Uri(@"Earnest_Indieiduals/image/qty15section3.jpg");
qestion15.Source = new BitmapImage(uri);
error Invalid URI: The format of the URI could not be determined.
Use
var uri = new Uri(@"image/qty15section3.jpg", UriKind.Relative);
in case code you are trying to execute is written in assembly Earnest_Indieiduals.
Also you can use Pack URI's.
var uri = new Uri("pack://application:,,,/image/qty15section3.jpg",
UriKind.Absolute);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With