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