Esempio n. 1
0
            public OwnerContext(BaseMenuRenderer container)
            {
                if (container == null)
                {
                    throw new ArgumentNullException("container");
                }

                this.container = container;
                Menu owner = container.Owner;
                Page page  = owner.Page;

                Header               = page != null ? page.Header : null;
                ClientID             = owner.ClientID;
                IsVertical           = owner.Orientation == Orientation.Vertical;
                StaticSubMenuIndent  = owner.StaticSubMenuIndent;
                SelectedItem         = owner.SelectedItem;
                ControlLinkStyle     = owner.ControlLinkStyle;
                StaticDisplayLevels  = owner.StaticDisplayLevels;
                StaticMenuItemStyle  = owner.StaticMenuItemStyleInternal;
                DynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
                LevelMenuItemStyles  = owner.LevelMenuItemStyles;
            }
Esempio n. 2
0
			public OwnerContext (BaseMenuRenderer container)
			{
				if (container == null)
					throw new ArgumentNullException ("container");

				this.container = container;
				Menu owner = container.Owner;
				Page page = owner.Page;

				Header = page != null ? page.Header : null;
				ClientID = owner.ClientID;
				IsVertical = owner.Orientation == Orientation.Vertical;
				StaticSubMenuIndent = owner.StaticSubMenuIndent;
				SelectedItem = owner.SelectedItem;
				ControlLinkStyle = owner.ControlLinkStyle;
				StaticDisplayLevels = owner.StaticDisplayLevels;
				StaticMenuItemStyle = owner.StaticMenuItemStyleInternal;
				DynamicMenuItemStyle = owner.DynamicMenuItemStyleInternal;
				LevelMenuItemStyles = owner.LevelMenuItemStyles;
			}