我的全景控件的背景图像存储在“/Shared/ShellContent/Background.png”中。
在我的 XAML 中,我将引用设置为:
<controls:Panorama.Background>
<ImageBrush ImageSource="isostore:/Shared/ShellContent/Background.png" />
</controls:Panorama.Background>
但绑定似乎不起作用。
我已经使用出色的独立存储资源管理器验证了 PNG 文件的存在。
这种情况甚至可以通过 XAML 实现吗?