将全景背景与隔离存储中的图像绑定
我的全景控件的背景图像存储在“/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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是否是一个绑定?它是对独立存储的引用。
如果您的独立存储在绑定时为空,则它不会更新,因为没有
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