如何在窗口手机8 sdk中随机页面点击按钮或图像点击 [英] how to random pages in window phone 8 sdk with a button click or image click

查看:68
本文介绍了如何在窗口手机8 sdk中随机页面点击按钮或图像点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中的窗口电话8 sdk中有一些页面。所以我想在点击图片或按钮时对这些页面进行randomaze。请帮我急。

i have some pages in window phone 8 sdk in c#. so i want to randomaze these pages when i click a image or a button. please help me urgent.

推荐答案

将您的页面添加到列表中。

使用项目数作为输入生成一个随机数(记住从计数中取1,因为它基于零)。

获取该索引的页面。
Add your pages into something like a list.
Generate a random number using the count of items as your input (remember to take 1 off the count as it's zero based).
Get the page at that index.


这篇关于如何在窗口手机8 sdk中随机页面点击按钮或图像点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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