.net core UWP磁贴-自适应图像替换文本未显示

.net core UWP磁贴-自适应图像替换文本未显示,.net-core,uwp,.net-5,windows-community-toolkit,msix,.net Core,Uwp,.net 5,Windows Community Toolkit,Msix,问题:为什么我的以下windows 10“开始”菜单上的磁贴代码会显示图像,但当我将鼠标悬停在图像上时,它不会显示图像。我在这里可能缺少什么,我们如何才能让它发挥作用 代码: public void TileTest() { TileContent content = new TileContent() { Visual = new TileVisual() { TileWide = new TileBinding()

问题:为什么我的以下windows 10“开始”菜单上的磁贴代码会显示图像,但当我将鼠标悬停在图像上时,它不会显示图像。我在这里可能缺少什么,我们如何才能让它发挥作用

代码

public void TileTest()
{
    TileContent content = new TileContent()
    {
        Visual = new TileVisual()
        {
            TileWide = new TileBinding()
            {

                Content = new TileBindingContentAdaptive()
                {
                    Children =
                    {
                        new AdaptiveGroup()
                        {
                            Children =
                            {
                                new AdaptiveSubgroup()
                                {
                                    HintWeight = 2,
                                    Children =
                                    {
                                        new AdaptiveImage()
                                        {
                                            Source = "Images/MyImages/Test.png",
                                            AlternateText = "Test alternative text"
                                        }
                                    }
                                }
                            }
                        },
                    }
                }
            }
        }
    };

    TileNotification notification = new TileNotification(content.GetXml());
    TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
}

备注:这可能不重要,但只是以防万一:我使用的是一个调用UWP/WinRT API的应用程序-使用
VS2019-ver 16.9
.NET5
Windows 10 Pro-ver 2004

上使用独立的wpf应用程序实现时是否有效?此外,我建议您可以创建一个单独的uwp应用程序来检查它是否工作。@AryaDing MSFT这也发生在
uwp
中。您可以阅读有关检查代码的官方文档。@AryaDing MSFT实际上我使用了您上面引用的链接
创建自适应分幅
中的部分。但是没有一个代码示例使用了
AlternateText
可能您误解了AlternateText的含义,没有相关信息表明AlternateText可以在您将鼠标悬停在图像上时显示图像信息。