37 references to Control
System.Web.Mobile (37)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (37)
40
if (
Control
.Items.Count == 0) {
49
int selectedIndex =
Control
.SelectedIndex;
51
switch(
Control
.SelectType) {
66
if (
Control
.SelectType == ListSelectType.CheckBox) {
68
writer.AddOnEnterForwardSetVar(
Control
.UniqueID);
73
for (int i = 0; i <
Control
.Items.Count; i++) {
74
if (
Control
.Items[i].Selected) {
82
writer.AddOnEnterForwardSetVar(
Control
.UniqueID, builder.ToString());
97
(!
Control
.Visible ||
Control
.Form !=
Control
.MobilePage.ActiveForm)) {
124
if(
Control
.SelectType == ListSelectType.DropDown &&
126
Control
.Items.Count > 0) {
127
Control
.Items[0].Selected = true;
151
for (int i = 0; i <
Control
.Items.Count; i++) {
152
Control
.Items[i].Selected = false;
156
Control
.Items[selectedItemIndices[i]].Selected = true;
165
ListSelectType selectType =
Control
.SelectType;
166
MobileListItemCollection items =
Control
.Items;
185
writer.WriteAttribute("name",
Control
.UniqueID);
193
(
Control
.IsMultiSelect || itemIndex ==
Control
.SelectedIndex)) {
224
if (
Control
.SelectType == ListSelectType.MultiSelectListBox) {
228
if (
Control
.SelectType == ListSelectType.ListBox ||
Control
.SelectType == ListSelectType.MultiSelectListBox) {
229
writer.WriteAttribute ("size",
Control
.Rows.ToString(CultureInfo.InvariantCulture));
232
writer.WriteAttribute ("name",
Control
.UniqueID);
236
for (int itemIndex = 0; itemIndex <
Control
.Items.Count; itemIndex++) {
237
MobileListItem item =
Control
.Items[itemIndex];
240
if (item.Selected && (
Control
.IsMultiSelect || itemIndex ==
Control
.SelectedIndex)) {
257
String controlFormAction =
Control
.Form.Action;
273
if (
Control
.IsMultiSelect ||
Control
.Form.Action.Length > 0 || !IsViewStateEnabled()) {
274
String uniqueID =
Control
.UniqueID;
275
MobileListItemCollection items =
Control
.Items;
285
Control ctl =
Control
;