.NET Mobile输入[转]

Input Controls are used to collect input from the mobile user.
输入控件用于采集来自Mobile用户的输入。


Input Controls
输入控件

There is a number of mobile controls that support user input.
有很多支持用户输入的Mobile控件

The most common input control is perhaps the TextBox control, which was demonstrated in the previous chapter. The TextBox control is perfect for simple user input like names, numbers, identifications and keywords.
最常见的输入控件也许是TextBox(文本框)控件,这在前一章已有所示范,TextBox控件对于像姓名,数字,鉴别词和关键字这样的简单用户输入来说是再完美不过了。

For larger amount of input a TextView control is a better choice. The TextView control allows long multi-line input like the one you need for SMS or other messages.
对于大量文本输入TextView控件是较好的选择。TextView控件允许多行的长文本输入,就像你的输入SMS信息或其他信息一样。


Numeric Input
数字输入

The numeric attribute of the textbox control can be set to true or false to specify whether the textbox should accept only numeric input.
文本框控件的numeric(数字)属性可设置为真或假,来指定文本是否应只接受数字输入。

Note: This behavior will normally work on cell phones by changing the input mode from letters to numbers. For HTML browsers however, this behavior is normally not supported.
注意:这种行为作用在手机上的情况通常是输入模式由字母转为数字。但在HTML浏览器上,这种行为通常是不被支持的。


Password Input
密码输入

The password attribute of the textbox control can be set to true or false to specify whether the textbox should be treated as a password field.
文本框控件的password(密码)属性可设置为真或假,来指定文本框是否应作为一个密码输入区。

A password field will hide the input by displaying * (stars) instead of ordinary text.
密码输入区域会通过以显示“*”(星符)替代正常文本的方式隐藏输入。


List Controls
列表控件

TextBox and TextView controls are well suited for entering input, but sometimes you want the user to select from a list of predefined values.
文本框和文本浏览控件很适合于嵌入式输入,但有时你会想让用户在一系列预定的值中进行选择

The SelectionList Control supports drop down lists, check boxes and radio buttons. This topic is covered in another chapter.
SelectionList(选择项)控件支持下拉列表,检查框和单选按钮。有关这些内容在另外一章还有介绍。

The List Control supports selection from menus and lists. The List Control is covered in another chapter.
List(列表)控件支持菜单和列表的选择。有关List(列表)控件的内容在另外一章还有介绍。


User Interface Controls
用户界面控件

User Interface Controls are controls which display the user interface:
用户界面控件是显示用户界面的控件

Name名称 Function功能
Command命令 Performs an action
执行行为
Form窗口 Defines a container for mobile controls
为Mobile控件定义容器
Image图象 Defines an image
定义一幅图象
Label标签 Defines a text
定义一段文本
Link链接 Defines a hyperlink
定义一个超链接
List列表 Defines a list
定义一个列表
MobilePage页面 Defines a container for mobile controls
为Mobile控件定义容器
ObjectList对象列表 Defines a list of data objects
定义一系列的数据对象
Panel面板 Defines a container for other controls
给其他控件定义容器
SelectionList选择列表 Defines a list to select from
定义从中选择的一个列表
StyleSheet样式表 Defines styles to be applied to other controls
定义应用于其他控件的样式
TextBox文本框 Defines a single line input box
定义单行的输入框
TextView文本浏览 Defines a multi-line input box
定义多行输入框

For a full control reference, including properties methods, events, and more examples, please refer to the "Mobile Reference" page.
要了解完整的控件参考,包括属性方法,事件和更多例子,请参考"Mobile Reference"这页

posted on 2009-03-17 16:43  黄裳  阅读(180)  评论(0编辑  收藏  举报

导航