制作幻灯片 wp7 [英] make slide show wp7

查看:45
本文介绍了制作幻灯片 wp7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须对存储在我的独立存储中的图像进行幻灯片展示.. 但我是 Windows 手机的初学者,我有一些困难.. 我已经知道如何呈现图像,或在屏幕上显示图像.. 但我想每张图片展示 2 秒.. 有一些功能来定义重现的时间吗?有什么例子吗?

I have to do a slide show off images stored in my isolated storage.. but i am beginner in windows phone and i have some dificulties.. i already know how to present the images, or show the images in the screen.. but i want to present the images 2 seconds each one.. theres some funcionalty to define the time to reproduce? Any example?

 IsolatedStorageFileStream stream = new IsolatedStorageFileStream(name_image,       FileMode.Open, myIsolatedStorage);

                    var image = new BitmapImage();
                    image.SetSource(stream);
                    image1.Source = image;

这就是我打开图像的方式.我有一个带有 5 个图像名称的 foreach 然后我打开每个图像..但我想看到图像 2 秒..

This is how i open the image. I have a foreach with 5 name of images then i open each one.. but i want to see the images 2 seconds..

推荐答案

你可以让当前线程休眠 2 秒:

You could make the current thread sleep for 2 seconds:

System.Threading.Thread.Sleep(2000);

作为 foreach 正文中的最后一句.它不是很整洁,但可以胜任.

As the last sentence in the foreach body. It is not very neat, but it will do the job.

这篇关于制作幻灯片 wp7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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