相关疑难解决方法(0)

UWP Toast 可以工作,但图像(AdaptiveImage、ToastGenericHeroImage、ToastGenericAppLogo)不显示

我的目标是 Windows 10,最新的操作系统版本。我从 Microsoft 自适应 Toast 示例中复制/粘贴了一些内容 - 包括路径。这是我的代码:

public void CreateToast(ToastViewModel model)
{
    ToastContent content = new ToastContent()
    {
        Launch = "app-defined-string",

        Visual = new ToastVisual()
        {
            BindingGeneric = new ToastBindingGeneric()
            {
                Children =
                {
                    new AdaptiveText()
                    {
                        Text = "Photo Share"
                    },

                    new AdaptiveText()
                    {
                        Text = "Andrew sent you a picture"
                    },

                    new AdaptiveText()
                    {
                        Text = "See it in full size!"
                    },

                    new AdaptiveImage()
                    {
                        Source = "https://unsplash.it/360/180?image=1043"
                    }
                },
                HeroImage = new ToastGenericHeroImage()
                {
                    Source …
Run Code Online (Sandbox Code Playgroud)

c# xml windows-10 uwp visual-studio-2017

4
推荐指数
1
解决办法
2105
查看次数

标签 统计

c# ×1

uwp ×1

visual-studio-2017 ×1

windows-10 ×1

xml ×1