56 references to Control
System.Web.Mobile (56)
UI\MobileControls\Adapters\WmlObjectListAdapter.cs (56)
58
switch (
Control
.ViewMode)
73
if(
Control
.MobilePage.ActiveForm ==
Control
.Form &&
74
Control
.Visible &&
75
Control
.ViewMode == ObjectListViewMode.Commands &&
76
Control
.Items.Count > 0)
78
Control
.PreShowItemCommands (
Control
.SelectedIndex);
85
switch (
Control
.ViewMode)
88
if (
Control
.HasControls())
99
RenderItemMenu(writer,
Control
.Selection);
103
if (
Control
.Selection.HasControls())
106
Control
.Selection.RenderChildren(writer);
110
RenderItemDetails(writer,
Control
.Selection);
118
if (
Control
.ViewMode == ObjectListViewMode.List)
120
Control
.CreateTemplatedItemsList(doDataBind);
124
Control
.CreateTemplatedItemDetails(doDataBind);
134
int pageStart =
Control
.FirstVisibleItemIndex;
135
int pageSize =
Control
.VisibleItemCount;
136
ObjectListItemCollection items =
Control
.Items;
151
if (ShouldRenderAsTable() && (tableFieldIndices =
Control
.TableFieldIndices).Length != 0)
165
writer.RenderText(
Control
.AllFields[fieldIndex].Title);
203
int labelFieldIndex =
Control
.LabelFieldIndex;
204
ObjectListField labelField =
Control
.AllFields[labelFieldIndex];
238
String detailsCommandText =
Control
.DetailsCommandText.Length == 0 ?
240
Control
.DetailsCommandText;
244
Style commandStyle =
Control
.CommandStyle;
256
ObjectListCommandCollection commands =
Control
.Commands;
268
String backCommandText =
Control
.BackCommandText.Length == 0 ?
270
Control
.BackCommandText;
275
Style labelStyle =
Control
.LabelStyle;
277
writer.RenderText(item[
Control
.LabelFieldIndex], true);
281
IObjectListFieldCollection fields =
Control
.AllFields;
299
switch (
Control
.ViewMode)
310
if (
Control
.SelectListItem(itemIndex, true))
314
Control
.ViewMode = ObjectListViewMode.Commands;
318
Control
.ViewMode = ObjectListViewMode.Details;
333
if (
Control
.SelectListItem(itemIndex, false))
335
Control
.RaiseDefaultItemEvent(itemIndex);
344
Control
.ViewMode = ObjectListViewMode.List;
349
Control
.ViewMode = ObjectListViewMode.Details;
358
Control
.ViewMode = ObjectListViewMode.List;
363
Control
.ViewMode = ObjectListViewMode.Commands;
393
if(
Control
.Items.Count == 0)
403
if (ShouldRenderAsTable() && (tableFieldIndices =
Control
.TableFieldIndices).Length != 0)
408
if (
Control
.AllFields[tableFieldIndices[i]].Visible)
416
visibleFieldsInListView =
Control
.AllFields[
Control
.LabelFieldIndex].Visible ?
425
foreach (ObjectListField field in
Control
.AllFields)
445
return
Control
.Commands.Count > 0;
451
return
Control
.DefaultCommand.Length > 0;
460
String defaultCommand =
Control
.DefaultCommand;
463
int commandCount =
Control
.Commands.Count;
466
String.Compare(defaultCommand,
Control
.Commands[0].Name, StringComparison.OrdinalIgnoreCase) == 0))
494
int[] tableFieldIndices =
Control
.TableFieldIndices;
498
if (
Control
.AllFields[tableFieldIndices[i]].Visible)