windows-runtime – 图像源上的Uri格式
发布时间:2021-01-28 02:03 所属栏目:52 来源:网络整理
导读:以下uri有什么问题? bmi.UriSource = (new Uri(@"/Assets/Image.png",UriKind.Relative)); 其中bmi是BitmapImage.我将图像集的构建操作设置为嵌入式资源. 解决方法 找到了; bmi.UriSource = (new Uri("ms-appx:/Assets/Logo.png")); 并将动作设置为内容. RT
以下uri有什么问题? bmi.UriSource = (new Uri(@"/Assets/Image.png",UriKind.Relative)); 其中bmi是BitmapImage.我将图像集的构建操作设置为嵌入式资源. 解决方法找到了;bmi.UriSource = (new Uri("ms-appx:/Assets/Logo.png")); 并将动作设置为内容. RT中没有相对URI. (编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读