Exemplo n.º 1
0
        public void ApplyComboBoxStyle(ComboBoxStyle style)
        {
            if (style.ItemsContainerStyle != null)
            {
                _itemsContainer.ApplyWidgetStyle(style.ItemsContainerStyle);
            }

            _dropDownItemStyle = style.ListItemStyle;

            foreach (var item in Items)
            {
                var button = (ImageTextButton)item.Widget;
                button.ApplyImageTextButtonStyle(_dropDownItemStyle);
                if (item.Color != null)
                {
                    button.TextColor = item.Color.Value;
                }
            }

            InternalChild.ApplyImageTextButtonStyle(style);
        }