WP7查找网格位置C# [英] WP7 Find Grid Position C#

查看:72
本文介绍了WP7查找网格位置C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我真的需要帮助.
我在WP7中有一个9x9grid,带有网格线.
我在每个网格单元格"中都有一个字符.
如何使用[,]或任何其他方法来重新获取网格中的位置?
希望我可以通过以下方式获得职位:grid [col,row]
我尝试使用此字符:char [,] grid = new char [numColumnsToAdd,numRowsToAdd];
但这没用.
谢谢.

Hi, I really need help on this.
I have a 9x9grid in WP7, with gridlines.
I have a character in each of the grid "cell".
How could I retreive the position in the grid using [,] or any other means?
hopefully i can get the position through: grid[col, row]
I tried using this: char[,] grid = new char[numColumnsToAdd, numRowsToAdd];
but it didn''t work.
Thanks.

推荐答案

能否澄清您是否需要在特定位置获取商品?我不明白你的问题.请提供更多详细信息,也许我可以帮您:)
Could you clarify if you require to fetch item at particular location? I have not understood your question. Please give more details, may be I can help :)


这篇关于WP7查找网格位置C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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