Beispiel #1
0
        /** Draw the items list */
        public override void DrawContents()
        {
            base.DrawContents();

            const int xPos  = 0;
            int       yPos  = 0;
            int       index = 0;

            foreach (T item in ItemList)
            {
                SmartUI.SolidText(new Rect(xPos, yPos, Width, ITEM_HEIGHT), DoConvertItemToString(item), (index == _selectedIndex) ? SelectedItemStyle : ItemStyle);
                yPos += ITEM_HEIGHT;
                index++;
            }
        }