protected override void UpdateDisplayList(float width, float height) { base.UpdateDisplayList(width, height); LabelDisplay.Color = (Color)GetStyle("textColor"); if (_selected) { _rect.BackgroundColor = (Color)GetStyle("selectionColor"); } else if (ShowsCaret) { _rect.BackgroundColor = (Color)GetStyle("caretColor"); } else if (hovered) { _rect.BackgroundColor = (Color)GetStyle("rollOverColor"); } else { _rect.BackgroundColor = (Color)GetStyle("backgroundColor"); } _rect.SetActualSize(width, height); // (this is a component - no layout, so...) _hgroup.SetActualSize(width, height); // (this is a component - no layout, so...) }