Exemplo n.º 1
0
        /// <summary>
        /// Creates a scrolling tab.
        /// </summary>
        /// <param name="helper">The <see cref="UIHelper"/>.</param>
        /// <param name="tabstrip">The <see cref="UITabstrip"/> this tab should belong to.</param>
        /// <param name="buttonWidth">The width of the tab button.</param>
        /// <param name="title">The title of the tab.</param>
        /// <returns>A <see cref="UIHelper"/> object of the newly created tab.</returns>
        public static UIHelper AddScrollingTab(this UIHelper helper, UITabstrip tabstrip, float buttonWidth, string title)
        {
            UIPanel panelTemplate = (UIPanel)UITemplateManager.Peek(UITemplateDefs.ID_OPTIONS_SCROLL_PANEL_TEMPLATE);

            return(helper.AddCustomTab(tabstrip, panelTemplate, buttonWidth, title));
        }