XCore.MenuAdapter.GetItemCountOfGroup C# (CSharp) Method

GetItemCountOfGroup() private method

private GetItemCountOfGroup ( string groupId ) : int
groupId string
return int
		public int GetItemCountOfGroup (string groupId)
		{
			CommandBarMenu menu = GetMenu(groupId);
			//need to simulate the user clicking on this in order to actually get populated.
			//could just as well have called our method CreateUIForChoiceGroup() instead of the groups OnDisplay()
			//method, but the latter is one step closer to reality.
			((ChoiceGroup)menu.Tag).OnDisplay(null, null);
			return menu.Items.Count;
		}