uwp – Images – Load image from Assets in Code

 ImageSource result = new BitmapImage(new Uri("ms-appx:///Assets/Windows_10_Hero.png"));

Use result to set the Source property of an Image control either though a Binding or code-behind

if you want to reproduce, please indicate the source:
uwp – Images – Load image from Assets in Code - CodeDay