Programmatically set the Source of an Image (XAML)

后端 未结 7 684
孤街浪徒
孤街浪徒 2020-12-09 02:15

I am working on a Windows 8 app. I need to know how to programmatically set the Source of an Image. I assumed that the Silverlight approach would work. However, it doesn\'t.

相关标签:
7条回答
  • 2020-12-09 03:17

    Try this format:

    ms-appx:/Images/800x600/BackgroundTile.bmp
    

    The given System.Uri cannot be converted into a Windows.Foundation.Uri

    0 讨论(0)
提交回复
热议问题