/// <summary> /// Sets the PanelStyle and PanelColors table in the given control collection. /// </summary> /// <param name="controls">A collection of child controls</param> /// <param name="panelStyle">Style of the panel</param> /// <param name="panelColors">The PanelColors table</param> public static void SetPanelProperties(Control.ControlCollection controls, PanelStyle panelStyle, PanelColors panelColors) { if (panelColors == null) { throw new ArgumentNullException("panelColors", string.Format(System.Globalization.CultureInfo.InvariantCulture, Resources.IDS_ArgumentException, "panelColors")); } ArrayList panels = FindPanels(true, controls); foreach (BasePanel panel in panels) { panel.PanelStyle = panelStyle; panelColors.Panel = panel; panel.SetPanelProperties(panelColors); } ArrayList xpanderPanelLists = FindPanelLists(true, controls); foreach (XPanderPanelList xpanderPanelList in xpanderPanelLists) { xpanderPanelList.PanelStyle = panelStyle; xpanderPanelList.PanelColors = panelColors; } }
/// <summary> /// Sets the PanelProperties for the Panel /// </summary> /// <param name="panelColors">The PanelColors table</param> public override void SetPanelProperties(PanelColors panelColors) { this.m_imgHoverBackground = null; base.SetPanelProperties(panelColors); }