Implemented interface member:
property
Count
System.Collections.ICollection.Count
93 references to Count
System.Web.Mobile (93)
UI\MobileControls\Adapters\ChtmlSelectionListAdapter.cs (1)
65if (items.Count == 0)
UI\MobileControls\Adapters\HtmlListAdapter.cs (1)
59if (items.Count == 0)
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (4)
71if (Control.Items.Count > 0) 128Debug.Assert (Control.VisibleItemCount <= Control.Items.Count); 643return Control.Commands.Count > 0; 661int commandCount = Control.Commands.Count;
UI\MobileControls\Adapters\HtmlSelectionListAdapter.cs (8)
56if (items.Count == 0 && 80if (items.Count == 0 && !Device.CanRenderEmptySelects) 101for(int itemIndex = 0; itemIndex < items.Count; itemIndex++) 152for(int itemIndex = 0; itemIndex < items.Count; itemIndex++) 187for(int itemIndex = 0; itemIndex < items.Count; itemIndex++) 270Control.Items.Count > 0) 301for (int i = 0; i < Control.Items.Count; i++) 337for (int i = 0; i < items.Count; i++)
UI\MobileControls\Adapters\WmlListAdapter.cs (1)
67if (items.Count == 0)
UI\MobileControls\Adapters\WmlObjectListAdapter.cs (5)
76Control.Items.Count > 0) 138if (pageSize == 0 || items.Count == 0) 393if(Control.Items.Count == 0) 445return Control.Commands.Count > 0; 463int commandCount = Control.Commands.Count;
UI\MobileControls\Adapters\WmlSelectionListAdapter.cs (5)
62int count = items.Count; 114int count = items.Count; 189if (Control.Items.Count == 0) 198Control.Items.Count > 0) 251for (int i = 0; i < Control.Items.Count; i++)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicListAdapter.cs (2)
41if (Control.Items.Count != 0) { 52if (items.Count == 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (4)
63if (SecondaryUIMode == _modeDetails && Control.Items.Count > 0) { 136return Control.Commands.Count > 0; 179return Control.Commands.Count == 1 && 638return HasItemDetails() || (Control.Commands.Count > 0 && !OnlyHasDefaultCommand());
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (7)
40if (Control.Items.Count == 0) { 73for (int i = 0; i < Control.Items.Count; i++) { 126Control.Items.Count > 0) { 151for (int i = 0; i < Control.Items.Count; i++) { 176for(int itemIndex = 0; itemIndex < items.Count; itemIndex++) { 236for (int itemIndex = 0; itemIndex < Control.Items.Count; itemIndex++) { 276for (int i = 0; i < items.Count; i++) {
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (2)
29if (commands.Count == 0) 34ArrayList commandList = new ArrayList(commands.Count);
UI\MobileControls\Design\ListDesigner.cs (3)
308if (_list.IsTemplated || items.Count == 0) 310int sampleRows = items.Count; 496_numberItems = _list.Items.Count;
UI\MobileControls\Design\ObjectListDesigner.cs (1)
139if ((oldAutoGenerateFields == false) && (_objectList.Fields.Count == 0))
UI\MobileControls\Design\SelectionListDesigner.cs (1)
273if (items.Count > 0)
UI\MobileControls\DeviceSpecificChoiceCollection.cs (2)
74if (index >= 0 && index < Count) 83int index = Items.IndexOf(choice, 0, Count);
UI\MobileControls\List.cs (6)
224if (IsTemplated && DataHelper.HasItems() && Items.Count > 0) 269for (int i = 0; i < items.Count; i++) 353Debug.Assert (Items.Count >= 0); 354return Items.Count; 502if (DataHelper.HasItems() && Items.Count > itemIndex - Items.BaseIndex) 523if (e.ItemIndex != Items.BaseIndex || e.ItemCount != Items.Count)
UI\MobileControls\ListDataHelper.cs (1)
177_dataSourceCount = Items.Count;
UI\MobileControls\MobileListItemCollection.cs (10)
70int n = Count; 88int count = Count; 240if (count < Count) 315if (changedCount == Count) 330if (Count > 0) 332itemChanges = new Object[Count]; 374changes[0] = (int)Count; 382bool[] selection = new bool[Count]; 397int diff = Count - count; 408for (int i = Count; i < count; i++)
UI\MobileControls\ObjectList.cs (12)
280int itemCount = ItemCount > 0 ? ItemCount : Items.Count; 316if (selectedIndex >= 0 && selectedIndex < Items.Count) 387int count = _fields.Count + _autoGeneratedFields.Count; 646for (int i = 0; i < items.Count; i++) 911int autoGeneratedCount = (_autoGeneratedFields != null) ? _autoGeneratedFields.Count : 0; 966if (_items != null && Items.Count > 0) 968return Items.Count; 1186Items.Count <= virtualIndex - Items.BaseIndex)) 1208if (e.ItemIndex != Items.BaseIndex || e.ItemCount != Items.Count) 1293int count = Items.Count; 1546if (physicalIndex >= 0 && physicalIndex < Items.Count)
UI\MobileControls\ObjectListFieldCollection.cs (5)
55int n = Count; 145if ((index >= 0) && (index < Count)) 171return Items.IndexOf(field, 0, Count); 252int fieldsCount = Count; 276int diff = Count - count;
UI\MobileControls\ObjectListItemCollection.cs (5)
57int n = Count; 174if (Count > 0) 176itemChanges = new Object[Count]; 200int diff = Count - count; 211for (int i = Count; i < count; i++)
UI\MobileControls\SelectionList.cs (7)
226for (int i = 0; i < Items.Count; i++) 239if (Items.Count == 0) 245if (value < -1 || value >= Items.Count) 271if (selectedIndex >= 0 && selectedIndex < Items.Count) 308DataHelper.Items.Count > _cachedSelectedIndex) 523int count = Items.Count; 538for (int i = 0; i < Items.Count; i++)