刷新Buton - 在应用程序中更改图像 [英] Refresh Buton - change Image on aplication

查看:43
本文介绍了刷新Buton - 在应用程序中更改图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 简单
页面 in WP8 在服务器上包含图像
当程序 开始 加载
jpg images on CacheMode
work
ofline

I have a simple page in WP8 contains images on the server. When the program startload jpg images on CacheMode to work ofline.

如何创建 按钮 b 刷新 图像 加载服务器
.Images 在服务器上更改, 在应用程序中
保持 相同 始终

How to create button to refreshing image loaded from the server .Images change on server, in the application remain the same all the time.

推荐答案

如果我理解你的要求...... 当您按下按钮时,您需要拨打服务器以下载图像(例如,使用HttpClient)。 将该图像复制到本地应用程序存储,然后将该图像分配给应用程序中的XAML图像
元素。
If I understand what you are asking...  When you press the button, you need to make a call to the server to download the image (using HttpClient for example).  Copy that image to your local app storage and then assign that image to the XAML image element in your application.


这篇关于刷新Buton - 在应用程序中更改图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆