Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uri Formatting on Image Source

What is wrong with the following uri?

bmi.UriSource = (new Uri(@"/Assets/Image.png", UriKind.Relative));

Where bmi is a BitmapImage.
I have the build action for the image set to Embedded Resource.

like image 870
windowsgm Avatar asked Apr 26 '26 02:04

windowsgm


1 Answers

Found it;

bmi.UriSource = (new Uri("ms-appx:/Assets/Logo.png"));

And build action set to Content. There's no Relative URI in RT.

like image 185
windowsgm Avatar answered Apr 30 '26 11:04

windowsgm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!