后台数据绑定
//本地
this.image1.Source = new BitmapImage(
new Uri("Desert.jpg", UriKind.Relative)
);
//网络
this.image1.Source = new BitmapImage(
new Uri("http://img.download.pchome.net/3k/37/131467_800x600.jpg", UriKind.Absolute)
);
windows phone开发之Image控件
最新推荐文章于 2024-12-20 00:00:00 发布
本文介绍了如何在本地和网络上加载图片到应用程序中。通过使用BitmapImage类和Uri类,可以轻松实现图片资源的绑定。
2414

被折叠的 条评论
为什么被折叠?



