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

后端 未结 7 2052
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 10:47

I\'m trying to programmatically load a BitmapImage in a XAML Metro app. Here\'s my code:

var uri = new Uri(\"/Images/800x600/BackgroundTile.bmp\", UriKind.Re         


        
7条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 11:06

    In the Consumer Preview, the correct URL format has apparently changed to ms-appx:/Images/800x600/BackgroundTile.bmp

提交回复
热议问题