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

后端 未结 7 2031
隐瞒了意图╮
隐瞒了意图╮ 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:23

    I know this is old but I hope this helps. I wrote this in XAML and it worked for me. The Ide I'm using is vs-2015 with win-10.

    
    
    
    
    
    
    
    
    
    
    
    
    

提交回复
热议问题