Example #1
0
        /// <summary>
        /// Renders the control using specified skin.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        protected override void Render(Skin.SkinBase skin)
        {
            bool hasFocus = IsOnTop;

            if (hasFocus)
            {
                m_TitleBar.Title.TextColor = Skin.Colors.Window.TitleActive;
            }
            else
            {
                m_TitleBar.Title.TextColor = Skin.Colors.Window.TitleInactive;
            }

            skin.DrawWindow(this, m_TitleBar.ActualHeight, hasFocus);
        }
Example #2
0
        /// <summary>
        /// Renders the control using specified skin.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        protected override void render(Skin.SkinBase skin)
        {
            bool hasFocus = IsOnTop;

            if (hasFocus)
            {
                title.TextColor = Skin.Colors.Window.TitleActive;
            }
            else
            {
                title.TextColor = Skin.Colors.Window.TitleInactive;
            }

            skin.DrawWindow(this, titleBar.Bottom, hasFocus);
        }
Example #3
0
        /// <summary>
        /// Renders the control using specified skin.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        protected override void Render(Skin.SkinBase skin)
        {
            bool hasFocus = IsOnTop;

            skin.DrawWindow(this, m_TitleBar.Bottom + m_Title.Margin.Bottom, hasFocus);
        }