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

ToastNotification中图片无法显示问题求助

ToastNotification无法显示图片问题

我正在构建一个通知服务,当前碰到ToastNotification无法显示图片的问题。我使用Microsoft.Toolkit.Uwp.Notifications库构建通知,代码如下:

static class NotificationTemplate
{
    public static ToastContentBuilder HelpDesk(string main_payload, string additional_data, string type)
    {
        return new ToastContentBuilder()
                  .AddArgument("type", "helpdesk")
                  .AddArgument("select", main_payload)
                  .AddText("Incoming ticket", AdaptiveTextStyle.Title)
                  .AddText(type, AdaptiveTextStyle.Header)
                  .AddAttributionText(additional_data)
                  .AddAppLogoOverride(new Uri("https://cdn4.iconfinder.com/data/icons/the-weather-is-nice-today/64/weather_11-64.png"))
                  .AddButton(new ToastButton()
                      .AddArgument("take", main_payload)
                      .SetContent("TAKE"))
                  .AddButton(new ToastButton()
                      .AddArgument("close", main_payload)
                      .SetContent("CLOSE"));
    }
}

我使用的图片链接在浏览器中可以正常打开,但通知里始终不显示图片。我的系统是Windows 10版本19045.3324,通知截图如下:
通知未显示图片

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.13 01:37:38