UWP - Image Uri in Application Folder

前端 未结 5 1341
自闭症患者
自闭症患者 2020-12-10 10:51

I\'m having a little issue here in showing images.

So when I\'m trying to load images from XAML, I can use a relative uri to the image source like this :

<         


        
5条回答
  •  猫巷女王i
    2020-12-10 11:37

    Image img = new Image();
    img.Source = new BitmapImage(new Uri("http://www.contoso.com/images/logo.png"));
    

提交回复
热议问题