将全景背景与隔离存储中的图像绑定

发布于 2025-01-06 10:07:49 字数 420 浏览 1 评论 0原文

我的全景控件的背景图像存储在“/Shared/ShellContent/Background.png”中。

在我的 XAML 中,我将引用设置为:

<controls:Panorama.Background>
    <ImageBrush ImageSource="isostore:/Shared/ShellContent/Background.png" />
</controls:Panorama.Background>

但绑定似乎不起作用。

我已经使用优秀的独立存储资源管理器验证了PNG文件的存在。

这种情况是否可以通过 XAML 实现?

The background image for my Panorama control is stored in "/Shared/ShellContent/Background.png".

In my XAML I set the reference to:

<controls:Panorama.Background>
    <ImageBrush ImageSource="isostore:/Shared/ShellContent/Background.png" />
</controls:Panorama.Background>

but the binding doesn't seem to work.

I have verified the existence of the PNG file using the excellent Isolated Storage Explorer.

Is this scenario even possible possible via XAML?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万水千山粽是情ミ 2025-01-13 10:07:49

这是否是一个绑定?它是对独立存储的引用。

如果您的独立存储在绑定时为空,则它不会更新,因为没有 onNotifyPropertychanged

Is this even a binding, it's a reference to the isolated storage.

If your isolated storage is empty when this is bound then it won't update because there is no onNotifyPropertychanged

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文