You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

嵌入式资源图片显示异常:App主页面Logo(SVG/PNG)无法加载

问题:App主页面Logo无法显示,SVG/PNG格式均无效

我需要在应用主页面展示App Logo,但无论如何操作,图片都无法显示。

最初使用SVG格式的代码如下:

<Image 
            Source="{StaticResource 'MystronicsWinder.Resources.AppIcon.appicon.svg'}"
            Margin="20"
            Aspect="AspectFill"
            IsVisible="true"/>

(配图:我的静态嵌入式图片)

更新: 更换为PNG格式的Logo后问题依然存在,代码如下:

<Image 
            Source="{StaticResource 'MystronicsWinder.Resources.AppIcon.appicon.png'}"
            Margin="20"
            Aspect="AspectFill"
            WidthRequest="300"
            HeightRequest="300"
            IsVisible="true"/>

内容的提问来源于stack exchange,提问作者Mahyar Shokraeian

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.08 01:35:27