Ejemplo n.º 1
0
        protected override void CreateChildControls()
        {
            DynamicMenuItem item = this._menuItem;

            for (int i = 0; i < item.MenuItems.Count; i++)
            {
                DynamicMenuIcon ctrl = new DynamicMenuIcon(item.MenuItems[i], this._itemStyle, this._aciveItemStyle, this._hoverItemStyle);
                ctrl.SelectorMode       = this._selectorMode;
                ctrl.MenuItemClicked   += new DynamicMenuEventHandler(ctrl_MenuItemClicked);
                ctrl.MenuItemRendering += new DynamicMenuItemRenderingEventHandler(ctrl_MenuItemRendering);
                this.Controls.Add(ctrl);
            }
            base.CreateChildControls();
        }
Ejemplo n.º 2
0
 protected override void CreateChildControls()
 {
     DynamicMenuItem item = this._menuItem;
     for (int i = 0; i < item.MenuItems.Count; i++)
     {
         DynamicMenuIcon ctrl = new DynamicMenuIcon(item.MenuItems[i], this._itemStyle, this._aciveItemStyle, this._hoverItemStyle);
         ctrl.SelectorMode = this._selectorMode;
         ctrl.MenuItemClicked += new DynamicMenuEventHandler(ctrl_MenuItemClicked);
         ctrl.MenuItemRendering += new DynamicMenuItemRenderingEventHandler(ctrl_MenuItemRendering);
         this.Controls.Add(ctrl);
     }
     base.CreateChildControls();
 }