/// <summary> /// Renders the control using specified skin. /// </summary> /// <param name="skin">Skin to use.</param> protected override void Render(Skins.Skin skin) { bool hasFocus = IsOnTop; if (hasFocus) m_Caption.TextColor = Skin.Colors.Window.TitleActive; else m_Caption.TextColor = Skin.Colors.Window.TitleInactive; skin.DrawWindow(this, m_TitleBar.Bottom, hasFocus); }