Development platform: VS2008 + Windows Mobile 6 Standard SDK
Item: Smartphone application. net2.0
Design idea: Now the SP phone is basically QVGA (320*240) Resolution, nine Sudoku menu display up to 9 menu items, and up and down the direction of the key to move the two effects, one is two menu items interchange, one is up and down the page. So I put 9 fixed-position PictureBox and label controls in the control, just to achieve both of these effects in the background. (Save the work of their own drawing, the level needs to be improved AH ~ ~)
Class name |
Describe |
Gridmenuitem |
Single menu item |
Gridmenucontrol |
Menu Container Control |
A menu item has some properties: The default icon, the icon selected, the text, and the key click on the item to invoke a method.
Gridmenuitem
1 public class GridMenuItem
2 {
3 /// <summary>
4 /// 子项文本说明
5 /// </summary>
6 public string Text
7 {
8 get;
9 set;
10 }
11
12 /// <summary>
13 /// 子项默认图标
14 /// </summary>
15 public Image Icon
16 {
17 get;
18 set;
19 }
20
21 /// <summary>
22 /// 子项选中图标
23 /// </summary>
24 public Image Icon2
25 {
26 get;
27 set;
28 }
29
30 public delegateItemClick Click;
31
32 }